/* Android account screens. Keep the existing authentication flow and DOM. */
html.astronominal-android body.auth-page {
  --native-auth-bg: #0b111c;
  --native-auth-field: #141d2a;
  --native-auth-text: #f3efe6;
  --native-auth-muted: #b5bdc9;
  --native-auth-gold: #d1b783;
  --native-auth-line: rgba(222, 226, 234, .16);
  display: block;
  min-height: 100dvh;
  height: auto;
  background: radial-gradient(ellipse at 85% 0, rgba(136, 120, 82, .1), transparent 38%), var(--native-auth-bg);
  color: var(--native-auth-text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

html.astronominal-android .auth-page .login-left {
  display: none;
}

html.astronominal-android .auth-page .login-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100dvh;
  height: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
}

html.astronominal-android .auth-page .login-form-wrap {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html.astronominal-android .auth-page .auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 0 14px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--native-auth-line);
  color: var(--native-auth-text);
  font: 400 24px/1.25 Georgia, serif;
  letter-spacing: -.025em;
}

html.astronominal-android .auth-page .auth-mobile-brand svg {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  color: var(--native-auth-gold);
}

html.astronominal-android .auth-page .login-header-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: -12px 0 10px;
  color: var(--native-auth-muted);
  font: 500 16px/1.5 Inter, system-ui, sans-serif;
}

html.astronominal-android .auth-page .auth-form-eyebrow {
  margin: 0 0 10px;
  color: var(--native-auth-gold);
  font: 600 11px/1.7 Inter, system-ui, sans-serif;
  letter-spacing: .13em;
}

html.astronominal-android .auth-page .login-form-title {
  margin: 0 0 12px;
  color: var(--native-auth-text);
  font: 400 clamp(31px, 8.5vw, 39px)/1.13 Georgia, serif;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}

html.astronominal-android .auth-page .login-form-sub {
  max-width: 360px;
  margin: 0 0 24px;
  color: var(--native-auth-muted);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
}

html.astronominal-android .auth-page .google-auth-options {
  margin: 30px 0 0;
}

html.astronominal-android .auth-page .login-form-wrap .btn,
html.astronominal-android .auth-page .login-form-wrap .google-auth-options .btn {
  width: 100%;
  height: auto !important;
  min-height: 56px;
  padding: 14px 16px;
  margin-top: 6px !important;
  border-radius: 14px;
  font: 600 17px/1.45 Inter, system-ui, sans-serif !important;
  letter-spacing: -.015em;
  white-space: normal;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease;
  touch-action: manipulation;
}

html.astronominal-android .auth-page .login-form-wrap .btn-primary {
  background: var(--native-auth-gold);
  border: 1px solid var(--native-auth-gold);
  color: #111924;
}

html.astronominal-android .auth-page .login-form-wrap .btn-primary:hover:not(:disabled) {
  background: #dbc594;
  border-color: #dbc594;
  box-shadow: none;
}

html.astronominal-android .auth-page .login-form-wrap .btn-secondary {
  background: #172130;
  border: 1px solid var(--native-auth-line);
  color: var(--native-auth-text);
}

html.astronominal-android .auth-page .login-form-wrap .google-signin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f9f9f8;
  border: 1px solid #e3e4e5;
  color: #20242b;
  font-weight: 500 !important;
}

html.astronominal-android .auth-page .google-signin-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

html.astronominal-android .auth-page .auth-email-separator {
  gap: 16px;
  margin: 19px 0;
  color: #a3adbc;
  font: 500 12px/1.5 Inter, system-ui, sans-serif;
  letter-spacing: .12em;
}

html.astronominal-android .auth-page .auth-email-separator::before,
html.astronominal-android .auth-page .auth-email-separator::after {
  background: var(--native-auth-line);
}

html.astronominal-android .auth-page .auth-options-back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 8px 0;
  margin: -8px 0 12px;
  color: var(--native-auth-gold);
  font: 500 16px/1.5 Inter, system-ui, sans-serif;
  text-align: left;
  touch-action: manipulation;
}

html.astronominal-android .auth-page .form-field {
  gap: 8px;
  margin-bottom: 20px;
}

html.astronominal-android .auth-page .form-field label {
  color: #e0e3e8;
  font: 500 17px/1.5 Inter, system-ui, sans-serif;
}

html.astronominal-android .auth-page .form-field input,
html.astronominal-android .auth-page .form-field select {
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #3a4555 !important;
  border-radius: 13px;
  background: var(--native-auth-field) !important;
  color: var(--native-auth-text) !important;
  font: 400 17px/1.5 Inter, system-ui, sans-serif;
  caret-color: var(--native-auth-gold);
  scroll-margin-block: 20px;
  box-shadow: none;
}

html.astronominal-android .auth-page .form-field input::placeholder {
  color: #a2aebe;
  opacity: 1;
}

html.astronominal-android .auth-page .form-field input:focus,
html.astronominal-android .auth-page .form-field select:focus {
  border-color: var(--native-auth-gold) !important;
  box-shadow: 0 0 0 3px rgba(209, 183, 131, .12) !important;
  outline: none;
}

html.astronominal-android .auth-page .form-row-2col {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

html.astronominal-android .auth-page #linkForgotPassword,
html.astronominal-android .auth-page #forgotForm > div:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 0 8px 10px;
  color: var(--native-auth-gold);
  font: 500 15px/1.5 Inter, system-ui, sans-serif !important;
  text-align: right;
  touch-action: manipulation;
}

html.astronominal-android .auth-page #forgotForm > div:last-child a {
  padding-inline: 12px;
  font-size: 16px !important;
}

html.astronominal-android .auth-page #birthSignsHelp {
  margin: 12px 0 0 !important;
  padding: 14px 16px;
  border-left: 2px solid rgba(209, 183, 131, .55);
  border-radius: 0 10px 10px 0;
  background: rgba(209, 183, 131, .045);
  color: var(--native-auth-muted) !important;
  font: 400 16px/1.65 Inter, system-ui, sans-serif !important;
}

html.astronominal-android .auth-page .auth-mode-switch {
  gap: 2px 5px;
  margin: 24px 0 0;
  color: var(--native-auth-muted);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
}

html.astronominal-android .auth-page .auth-mode-switch .auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: auto;
  padding: 8px 5px;
  color: var(--native-auth-gold);
  font: 600 16px/1.6 Inter, system-ui, sans-serif;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  touch-action: manipulation;
}

html.astronominal-android .auth-page .login-terms {
  margin: 16px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--native-auth-line);
  color: #aab4c3;
  font: 400 14px/1.65 Inter, system-ui, sans-serif;
  text-align: center;
}

html.astronominal-android .auth-page .login-terms a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 3px 2px;
  color: #d7c59f;
  text-underline-offset: 4px;
  touch-action: manipulation;
}

html.astronominal-android .auth-page .auth-alert {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
  overflow-wrap: anywhere;
  scroll-margin-block: 20px;
}

html.astronominal-android .auth-page .auth-alert.error {
  background: #281c24;
  border-color: #69404a;
  color: #f0bdbb;
}

html.astronominal-android .auth-page .auth-alert.success {
  background: #13282a;
  border-color: #3a6160;
  color: #c1ded4;
}

html.astronominal-android .auth-page .city-autocomplete-dropdown {
  max-height: min(240px, 40dvh);
  overflow-y: auto;
  background: #172130 !important;
  border-color: #465264 !important;
  border-radius: 13px !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28) !important;
}

html.astronominal-android .auth-page .city-autocomplete-dropdown .city-autocomplete-item {
  min-height: 52px;
  padding: 12px 16px;
  font-size: 17px !important;
}

html.astronominal-android .auth-page a:focus-visible,
html.astronominal-android .auth-page button:focus-visible {
  outline: 2px solid var(--native-auth-gold);
  outline-offset: 4px;
}

/* The document, rather than a fixed form panel, scrolls above the keyboard. */
html.astronominal-android .auth-page .login-form-wrap:focus-within .auth-mobile-brand {
  margin-bottom: 18px;
}

@media (max-width: 360px) {
  html.astronominal-android .auth-page .login-right {
    padding-inline: 20px;
  }

  html.astronominal-android .auth-page .auth-mobile-brand {
    font-size: 23px;
  }

  html.astronominal-android .auth-page #linkForgotPassword {
    padding-left: 8px;
    font-size: 14px !important;
  }
}

@media (max-height: 620px) {
  html.astronominal-android .auth-page .auth-mobile-brand {
    margin-bottom: 20px;
  }

  html.astronominal-android .auth-page .auth-form-eyebrow {
    display: none;
  }

  html.astronominal-android .auth-page .login-form-sub {
    margin-bottom: 18px;
  }

  html.astronominal-android .auth-page .google-auth-options {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.astronominal-android .auth-page .login-form-wrap .btn {
    transition: none;
  }
}
