/* Focused, app-like authentication screens. Loaded after the shared polish and
   navigation styles so the phone flow is not mistaken for a normal app page. */
.auth-mobile-lead { display: none; }

@media (max-width: 760px) {
  body.auth-page {
    min-height: 100dvh;
    padding: 0;
    background:
      radial-gradient(circle at 88% 8%, rgba(255, 204, 51, .20), transparent 11rem),
      linear-gradient(180deg, #fffdf9 0%, #f8f4ed 100%);
  }

  body.auth-page .mobile-app-header {
    position: sticky;
    top: 0;
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
    background: rgba(255, 253, 249, .88);
  }

  body.auth-page .mobile-app-profile {
    width: auto;
    min-width: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: #7a0019;
    font-size: 13px;
    font-weight: 850;
  }

  body.auth-page .shell {
    display: block;
    width: 100%;
    min-height: calc(100dvh - 64px);
    margin: 0;
    padding: 28px 20px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body.auth-page .welcome-panel { display: none; }

  .auth-mobile-lead {
    display: block;
    margin: 4px 0 24px;
    animation: auth-fade-up 380ms ease both;
  }

  .auth-mobile-lead__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #7a0019;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .auth-mobile-lead__eyebrow::before {
    content: "G";
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #ffcc33;
    color: #4b0714;
    font-size: 12px;
    letter-spacing: 0;
  }

  .auth-mobile-lead p:last-child {
    max-width: 28rem;
    margin: 0;
    color: #766d64;
    font-size: 14px;
    line-height: 1.5;
  }

  body.auth-page .auth-panel {
    width: 100% !important;
    padding: 24px 20px 22px !important;
    border: 1px solid rgba(78, 54, 34, .12) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 18px 36px rgba(72, 48, 25, .10) !important;
    backdrop-filter: none;
    animation: auth-fade-up 440ms 80ms ease both;
  }

  body.auth-page .auth-panel::before {
    top: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #7a0019, #b30b31 56%, #ffcc33) !important;
  }

  body.auth-page .auth-panel h1 {
    font-size: clamp(28px, 8vw, 34px) !important;
    letter-spacing: -.045em;
    line-height: 1.04;
  }

  body.auth-page .auth-panel .intro {
    margin: 10px 0 24px !important;
    color: #766d64;
    font-size: 14px;
    line-height: 1.5;
  }

  body.auth-page .field { margin-bottom: 16px; }
  body.auth-page label { margin-bottom: 8px; color: #3b312a; font-size: 13px; }

  body.auth-page input {
    min-height: 52px;
    padding: 0 15px;
    border-color: rgba(78, 54, 34, .16);
    border-radius: 15px !important;
    font-size: 16px;
  }

  body.auth-page input:focus {
    border-color: #7a0019;
    box-shadow: 0 0 0 4px rgba(122, 0, 25, .10);
  }

  body.auth-page .help { margin-top: 7px; font-size: 12px; }

  body.auth-page .button,
  body.auth-page .google-button {
    min-height: 52px;
    border-radius: 15px !important;
    font-size: 15px;
  }

  body.auth-page .button {
    border-color: #7a0019;
    background: #7a0019;
    box-shadow: inset 0 1px rgba(255,255,255,.16), 0 10px 18px rgba(122,0,25,.17);
  }

  body.auth-page .google-button { gap: 2px; }
  body.auth-page .google-mark { width: 26px; height: 26px; border-radius: 8px; }
  body.auth-page .oauth-form { margin-bottom: 18px; }
  body.auth-page .divider { margin-bottom: 18px; }
  body.auth-page .switch { margin: 20px 0 0; font-size: 14px; line-height: 1.45; }
  body.auth-page .error-list { padding: 12px 14px; border-radius: 14px; font-size: 13px; }

  body.auth-page .auth-panel .switch + .switch { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-mobile-lead,
  body.auth-page .auth-panel { animation: none !important; }
}

@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
