/* Log in. Same sky as the landing, one card instead of the phone, because
   this page is a door and not a conversation. Versioned: /assets is cached
   immutable for a year, so a change means login.v2.css and a new link. */

:root { --ink: #0c0b0b; --blue: #0a7cff; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  color: #14120f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.card :focus-visible { outline-color: var(--blue); }

.sky {
  position: fixed; inset: 0; z-index: 0;
  background: #1c2430;
  overflow: hidden;
}
.sky-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #6d624c, #1c2430 70%);
}
#sky-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sky-shade { position: absolute; inset: 0; background: rgba(12, 11, 11, .28); }

#page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 20px;
  padding-top: calc(28px + env(safe-area-inset-top));
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.brand {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: calc(22px + env(safe-area-inset-left));
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 40px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-size: 17px; font-weight: 500;
}
.brand img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.brand:hover { color: #fff; }

.card {
  width: min(100%, 440px);
  background: rgba(255, 253, 248, .94);
  border-radius: 32px;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
}

h1 {
  margin: 18px 0 0;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.05;
}

#lede {
  margin: 10px auto 0;
  max-width: 32ch;
  color: rgba(20, 18, 15, .62);
  font-size: 15px;
  line-height: 1.45;
}

form { margin-top: 26px; }

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(20, 18, 15, .1);
  box-shadow: 0 1px 2px rgba(20, 18, 15, .04);
}
.row:focus-within { border-color: var(--blue); }

.dial-wrap { position: relative; display: flex; align-items: center; flex: none; }
#dial { font-size: 16px; font-variant-numeric: tabular-nums; }
.chev { width: 12px; height: 12px; margin-left: 2px; opacity: .45; }
.country {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.hair { width: 1px; height: 22px; background: rgba(20, 18, 15, .14); flex: none; }

input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 17px;
  color: #14120f;
  font-variant-numeric: tabular-nums;
}
input::placeholder { color: rgba(20, 18, 15, .38); }
#code { letter-spacing: .28em; }
#code::placeholder { letter-spacing: 0; }

.go {
  flex: none;
  min-height: 46px;
  padding: 0 18px;
  border: none; border-radius: 999px;
  background: #14120f; color: #fff;
  font: inherit; font-size: 15px; font-weight: 650;
  cursor: pointer;
}
.go:hover { background: #000; }
.go:disabled { opacity: .55; cursor: default; }

#status {
  min-height: 1.3em;
  margin: 14px 0 0;
  color: rgba(20, 18, 15, .55);
  font-size: 13px;
}
#status[data-error] { color: #9a2b2b; }

#restart {
  margin-top: 4px;
  border: none; background: none;
  color: rgba(20, 18, 15, .55);
  font: inherit; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
#restart:hover { color: #14120f; }

.alts { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.new {
  display: inline-flex; align-items: center;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 18, 15, .18);
  color: #14120f;
  text-decoration: none;
  font-size: 15px; font-weight: 600;
}
.new:hover { border-color: #14120f; color: #14120f; }
.back {
  color: rgba(20, 18, 15, .5);
  font-size: 13px;
  text-underline-offset: 3px;
}
.back:hover { color: #14120f; }

.legal {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}
.legal a { color: inherit; }
.legal a:hover { color: #fff; }

.hidden { display: none; }

@media (max-width: 420px) {
  .card { padding: 28px 16px 20px; border-radius: 26px; }
  h1 { font-size: 30px; }
  .go { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #sky-video { display: none; }
}
