.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

.login-bg img.active {
  opacity: 1;
}

.login-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Violet dusk scrim -- deep indigo into brand violet, matching the
     landing hero's treatment. */
  background:
    linear-gradient(115deg, rgba(15, 12, 41, 0.78) 0%, rgba(46, 16, 101, 0.35) 45%, rgba(46, 16, 101, 0.15) 70%),
    linear-gradient(0deg, rgba(15, 12, 41, 0.72) 0%, rgba(15, 12, 41, 0.1) 40%);
}

.login-top-nav {
  position: relative;
  z-index: 2;
  padding: 24px 32px;
}

.wordmark-on-dark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--on-ink);
  text-decoration: none;
}

.login-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 6vw;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 12, 41, 0.42);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(15, 12, 41, 0.35);
}

.wordmark-small {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--on-ink-muted);
  margin: 0 0 18px;
}

.login-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--on-ink);
  margin: 0 0 6px;
}

.login-card .lede {
  color: var(--on-ink-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-ink);
  margin-bottom: 6px;
}

.route {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.route[hidden] {
  display: none;
}

.route-path {
  display: none;
}

.route-node {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s;
}

.route-node.done,
.route-node.current {
  /* Bright variant -- the base violet is tuned for light surfaces
     and gets lost on this dark glass card. */
  background: var(--accent-bright, var(--accent));
}

.oauth-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

/* Custom Google button -- replaces Clerk's mounted <SignIn/> widget
   entirely (see login.js renderGoogleButton). Styled as one more
   option in this app's own UI, matching .btn-primary's sizing and the
   phone-field's white/dark-text treatment, since it's real, permanent
   button content rather than something waiting on a widget to mount. */
.btn-oauth-google-skeleton {
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 70%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-oauth-google-skeleton { animation: none; }
}

.btn-oauth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: none;
  background: #FFFFFF;
  color: #14213D;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-quick) var(--ease-warm);
}

.btn-oauth-google:hover {
  background: #F3F3F3;
}

.btn-oauth-google:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-oauth-google svg {
  flex-shrink: 0;
}


.divider {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-ink-muted);
  margin: 0 0 20px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.phone-field {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 6px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
  border-right: 1px solid var(--border);
}

input[type="tel"], input[type="text"] {
  width: 100%;
  border: none;
  padding: 13px 12px;
  font-size: 15px;
  font-family: var(--font-ui);
  outline: none;
  background: transparent;
  color: var(--ink);
}

input#otp-input {
  background: var(--bg);
  border-radius: 10px;
  padding: 13px;
  letter-spacing: 0.3em;
  font-size: 18px;
  text-align: center;
  margin-bottom: 6px;
  width: 100%;
}

input#otp-input:focus, .phone-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.error-text {
  font-size: 12px;
  color: #FCA5A5;
  margin: 0 0 12px;
  min-height: 14px;
}

.hint {
  font-size: 12px;
  color: var(--on-ink-muted);
  margin: 0 0 16px;
  min-height: 14px;
}

.dev-otp-banner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--on-ink-muted);
  margin-bottom: 16px;
}

.dev-otp-banner strong {
  color: var(--on-ink);
  letter-spacing: 0.1em;
}

.terms {
  font-size: 11px;
  color: var(--on-ink-muted);
  text-align: center;
  line-height: 1.5;
  margin: 16px 0 0;
}

button { font-family: var(--font-ui); cursor: pointer; }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--on-ink-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  padding: 8px 0;
}

.btn-link:disabled { color: rgba(255,255,255,0.3); text-decoration: none; cursor: not-allowed; }

.email-step-toggle {
  text-align: center;
  margin-top: 4px;
}

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.success-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  color: #4ADE80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.token-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.token-block label {
  font-size: 12px;
  color: var(--on-ink-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.token-block label a { color: var(--on-ink); }

.token-row { display: flex; gap: 8px; }

#token-display {
  flex: 1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--on-ink-muted);
  background: rgba(255, 255, 255, 0.08);
}

.btn-copy {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-ink);
  flex-shrink: 0;
}

.step { display: none; }
.step.active { display: block; }

#profile-details { margin-bottom: 8px; }

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--on-ink);
}

.profile-label { color: var(--on-ink-muted); }

.login-quote {
  position: relative;
  z-index: 2;
  padding: 0 32px 40px;
  max-width: 640px;
}

.login-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--on-ink);
  margin: 0 0 10px;
}

.login-quote p {
  color: var(--on-ink-muted);
  font-size: 14px;
  margin: 0 0 18px;
  max-width: 46em;
}

.destination-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.destination-pills span {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 6px 13px;
}

@media (max-width: 860px) {
  .login-content { justify-content: center; padding: 24px 20px; }
  .login-card { max-width: 440px; }
  .login-quote { text-align: center; padding: 0 20px 32px; }
  .login-quote blockquote { font-size: 20px; }
  .destination-pills { justify-content: center; }
}
