/* Sign in / sign up. Base rules apply everywhere; the phone redesign is scoped to body.auth-page. */

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font: 500 14px/1.25 'Inter', sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.auth-google-btn:hover { background: #f9fafb; }
.auth-google-btn svg { width: 20px; height: 20px; flex: none; }

.auth-mobile-brand,
.auth-mobile-legal {
  display: none;
}

@media (max-width: 768px) {
  /* Focused, chrome-free screen: no top bar, no long footer. */
  body.auth-page .navbar-glass,
  body.auth-page .qp-footer {
    display: none;
  }

  body.auth-page {
    background: #f7f2e9;
  }

  body.auth-page .auth-split-container {
    display: block;
    min-height: 100dvh;
    overflow: visible;
  }

  body.auth-page .auth-form-panel {
    min-height: auto;
    padding: calc(28px + env(safe-area-inset-top)) 22px 8px;
    background: none;
    align-items: flex-start;
  }
  body.auth-page .auth-form-panel::before { display: none; }

  body.auth-page .auth-form-card {
    max-width: 420px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
  }

  body.auth-page .auth-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
  }
  body.auth-page .auth-mobile-brand-mark { font-size: 44px; line-height: 1; }
  body.auth-page .auth-mobile-brand-mark .logo-mark { height: 48px; width: 52px; }
  body.auth-page .auth-mobile-brand-name {
    font: 600 13px/1 'Inter', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #74569b;
  }

  body.auth-page .auth-form-header { margin-bottom: 28px; }
  body.auth-page .auth-form-title {
    font: 500 32px/1.15 'Literata', Georgia, serif;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }
  body.auth-page .auth-form-subtitle {
    font-size: 16px;
    opacity: 1;
  }

  body.auth-page .auth-form-group { margin-bottom: 18px; }
  body.auth-page .auth-form-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
  body.auth-page .auth-form-label-icon { display: none; }

  body.auth-page .auth-input {
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e0;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    transform: none;
  }
  body.auth-page .auth-input:focus {
    border-color: #74569b;
    box-shadow: 0 0 0 3px rgba(116, 86, 155, 0.2);
    transform: none;
  }
  body.auth-page .auth-input::placeholder { color: #8a94a6; }

  body.auth-page .auth-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #5b3f87;
    font-weight: 600;
  }
  body.auth-page .auth-link::after { display: none; }

  body.auth-page .auth-checkbox-wrapper { min-height: 44px; margin-bottom: 14px; }
  body.auth-page .auth-checkbox-label { min-height: 44px; display: inline-flex; align-items: center; }

  /* Solid, high-contrast primary action (white on #74569b is about 6:1). */
  body.auth-page .auth-btn,
  body.auth-page .auth-submit-btn {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 14px;
    background: #74569b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(116, 86, 155, 0.3);
    font-size: 17px;
  }
  body.auth-page .auth-btn::before,
  body.auth-page .auth-submit-btn::before { display: none; }
  body.auth-page .auth-btn:hover,
  body.auth-page .auth-submit-btn:hover { background: #664a8a; transform: none; }
  body.auth-page .auth-btn:active,
  body.auth-page .auth-submit-btn:active { background: #5b3f87; transform: scale(0.99); }

  body.auth-page .auth-google-btn {
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e0;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: none;
  }
  body.auth-page .auth-google-btn:active { background: #f3f4f6; }

  body.auth-page .auth-form-footer { margin-top: 20px; padding-top: 0; border-top: 0; }
  body.auth-page .auth-footer-text { font-size: 15px; }

  body.auth-page .auth-mobile-legal {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 22px calc(20px + env(safe-area-inset-bottom));
  }
  body.auth-page .auth-mobile-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    font: 500 13px/1 'Inter', sans-serif;
    color: #4a5568;
    text-decoration: none;
  }
}
