/* ============================================
   /auth PAGE LAYOUT — site header (landing.css + site-nav.css), centered card,
   light footer. The form itself is styled by /auth-ui.css (shared with the modal).
   ============================================ */

body.aa-page {
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aa-page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 16px 48px; /* fixed header ≈ 72px */
}

.aa-page-card {
  display: flex;
  width: 100%;
  max-width: 940px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
  overflow: hidden;
}

/* Left: value reminder (desktop only) */
.aa-page-aside {
  flex: 0 0 42%;
  padding: 48px 40px;
  color: #fff;
  background: linear-gradient(150deg, #0a66c2 0%, #1d4ed8 100%);
  position: relative;
}
.aa-page-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.aa-page-aside > * { position: relative; }
.aa-page-aside h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0 0 14px; color: #fff; }
.aa-page-aside p { font-size: 16px; opacity: .92; margin: 0 0 28px; }
.aa-page-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.aa-page-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.aa-page-features li svg { flex-shrink: 0; color: #bfdbfe; }
.aa-page-features li.pro { margin-top: 4px; padding: 10px 14px; background: rgba(255, 255, 255, .12); border-radius: 12px; }
.aa-page-features .pro-tag { margin-left: 4px; padding: 2px 6px; border-radius: 4px; background: #fff; color: #0a66c2; font-size: 10px; font-weight: 800; }

/* Right: the form */
.aa-page-form {
  flex: 1;
  min-width: 0;
  padding: 44px 48px 40px;
}
.aa-page-form > * { max-width: 400px; margin-left: auto; margin-right: auto; }

/* Light footer */
.aa-page-footer { border-top: 1px solid #e2e8f0; background: #fff; }
.aa-page-footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: #64748b;
}
.aa-page-footer-in p { margin: 0; }
.aa-page-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.aa-page-footer-links a { color: #475569; text-decoration: none; }
.aa-page-footer-links a:hover { color: #0a66c2; text-decoration: underline; }

/* Language switcher (wired by i18n.js) */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: transparent; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer;
}
.lang-toggle:hover { border-color: #94a3b8; }
.lang-dropdown {
  display: none; position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 1000;
  min-width: 160px; padding: 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px;
  background: transparent; border: 0; border-radius: 6px; color: #0f172a; font-size: 13px; cursor: pointer; text-align: left;
}
.lang-option:hover { background: #f1f5f9; }
.lang-option.active { background: rgba(10, 102, 194, .08); color: #0a66c2; font-weight: 600; }

@media (max-width: 900px) {
  /* The value panel collapses to a slim brand band carrying the page H1 (D7 2026-10-20: phones
     had no visible H1 — it lived in the hidden panel). Same blue gradient as desktop. */
  .aa-page-card { flex-direction: column; }
  .aa-page-aside { flex: none; padding: 14px 20px; text-align: center; }
  .aa-page-aside::before { background-size: 32px 32px; }
  .aa-page-aside h1 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
  .aa-page-aside p, .aa-page-aside .aa-page-features { display: none; }
  .aa-page-card { max-width: 480px; }
  .aa-page-form { padding: 36px 28px 32px; }
}

/* Phones: the card fills the width, header stays on top */
@media (max-width: 560px) {
  .aa-page-main { justify-content: flex-start; align-items: stretch; padding: 88px 12px 28px; }
  .aa-page-card { border-radius: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
  .aa-page-form { padding: 28px 18px 24px; }
  .aa-page-footer-in { justify-content: center; text-align: center; padding: 16px; }
  .aa-page-footer-links { justify-content: center; }
}

/* B2B pointer under the card (2026-11-10): one small grey line, never competing with sign-up. */
.aa-page-biz { align-self: center; margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: #64748b; text-align: center; }
.aa-page-biz a { color: #64748b; text-decoration: underline; text-underline-offset: 2px; }
.aa-page-biz a:hover { color: #0a66c2; }
