/* Sign in and create account (login.html): brand panel beside a form card. */

.btn.lg { padding: 14px 18px; font-size: 15px; border-radius: 14px; }
.field > .field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: var(--bg); }

/* ---------- Brand panel ---------- */
.auth-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px 56px;
  background:
    radial-gradient(60% 70% at 90% -5%, rgba(92, 134, 235, 0.5) 0%, rgba(92, 134, 235, 0) 62%),
    radial-gradient(70% 60% at 0% 110%, rgba(45, 82, 200, 0.4) 0%, rgba(45, 82, 200, 0) 62%),
    var(--hero-gradient);
}
.auth-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.auth-hero .brand { color: #fff; font-size: 21px; }
.auth-hero .logo { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.auth-hero .eyebrow { color: rgba(255, 255, 255, 0.72); }

.hero-body { display: grid; gap: 38px; }
.hero-copy { max-width: 470px; }
.hero-kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-title { margin: 0 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.045em; }
.hero-text { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }

/* Floating glass preview of the app */
.mock { position: relative; height: 262px; max-width: 470px; }
.mock-card {
  position: absolute; left: 0; top: 0; width: 80%; padding: 20px 22px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.26); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(3, 10, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: float 7s ease-in-out infinite;
}
.mock-balance { margin: 6px 0 12px; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.045em; }
.mock-balance span { font-size: 0.55em; opacity: 0.72; }
.mock-delta { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #8df0cb; background: rgba(141, 240, 203, 0.16); }
.mock-pill {
  position: absolute; display: flex; align-items: center; gap: 12px; min-width: 262px; padding: 12px 16px 12px 12px;
  border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 18px 40px rgba(3, 10, 40, 0.35);
  animation: float 6s ease-in-out infinite;
}
.mock-pill.in { right: 0; top: 128px; animation-delay: -2s; }
.mock-pill.out { left: 26px; top: 198px; animation-delay: -4s; }
.mock-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.mock-ico svg { width: 17px; height: 17px; }
.mock-pill.in .mock-ico { background: var(--positive-soft); color: var(--positive); }
.mock-pill.out .mock-ico { background: var(--accent-soft); color: var(--accent); }
.mock-pill p { margin: 0; font-size: 14px; font-weight: 700; }
.mock-pill small { font-size: 12px; color: var(--muted); }
.mock-pill strong { margin-left: auto; font-size: 14px; }
.mock-pill.in strong { color: var(--positive); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.hero-foot { display: grid; gap: 14px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hero-chips li { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.hero-note { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Form side ---------- */
.auth-panel {
  display: grid; place-items: center; padding: 40px 24px;
  background: radial-gradient(70% 50% at 100% 0%, rgba(29, 68, 184, 0.07) 0%, rgba(29, 68, 184, 0) 60%), var(--bg);
}
.auth { width: min(430px, 100%); }
.auth-card { padding: 30px 28px 28px; border-radius: 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 28px 60px rgba(11, 27, 58, 0.12); animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.auth h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; }
.auth .lede { margin: 0 0 22px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stepper { margin: 0 0 20px; }
.step-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.step-bars span { height: 5px; border-radius: 99px; background: var(--border-strong); transition: background 0.25s; }
.step-bars span.on { background: var(--accent); }
.step-label { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border: none; border-radius: 10px; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--hover); color: var(--text); }
.pw-toggle:focus-visible { outline: 3px solid rgba(29, 68, 184, 0.35); outline-offset: 1px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.meter span { height: 4px; border-radius: 99px; background: var(--border-strong); transition: background 0.2s; }
.meter.l1 span:nth-child(-n + 1) { background: var(--danger); }
.meter.l2 span:nth-child(-n + 2) { background: #e0a100; }
.meter.l3 span:nth-child(-n + 3) { background: #4aa88a; }
.meter.l4 span { background: var(--positive); }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn.primary { flex: 1; }
.switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.switch .link-btn { font-size: 14px; }

/* ---------- Phones: the form card slides up over the brand panel ---------- */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { padding: 26px 20px 96px; gap: 18px; }
  .hero-body { gap: 0; }
  .mock, .hero-chips { display: none; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-title { font-size: 34px; margin-bottom: 10px; }
  .hero-text { font-size: 15px; }
  .auth-panel { align-items: start; padding: 0 16px 40px; margin-top: -64px; position: relative; background: transparent; }
  .auth-card { padding: 24px 20px 22px; }
  .auth h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
