/* v7.204 — liquid glass for the customer auth pages (login, register, forgot,
   reset, add-phone, MFA). Same visual language as the v7.203 landings.
   Everything is scoped under .auth-wrap, which only those views render, so
   the shared style.css / polish.css rules for every other page are untouched.
   Markup is unchanged apart from the <link> that loads this file.

   The aurora is STATIC on purpose: it sits behind a large backdrop-blurred
   card, and any motion there makes the browser recompute the blur every frame
   while someone is typing (measured on the landings, v7.203). */
@font-face { font-family: ZamaManrope; src: url('../fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: ZamaManrope; src: url('../fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: ZamaManrope; src: url('../fonts/manrope-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

.auth-wrap {
  --ag-ink: #0b1b33; --ag-navy: #0c2340; --ag-copy: #394960; --ag-muted: #4d5d73;
  --ag-green: #0aa152; --ag-green-deep: #06763a; --ag-emerald: #12c76b;
  --ag-spring: cubic-bezier(.34, 1.45, .64, 1); --ag-ease: cubic-bezier(.22, 1, .36, 1);
  isolation: isolate;
  overflow: hidden; overflow: clip;
  padding: clamp(20px, 5vw, 48px) 16px;
  font-family: ZamaManrope, Arial, sans-serif;
  color: var(--ag-ink);
  background:
    radial-gradient(ellipse 55% 50% at 50% 45%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #eaf4ff 0%, #effaf4 55%, #f3f6fb 100%);
}

/* The two decorative divs every auth view already renders become the aurora. */
.auth-wrap .hero-grid, .auth-wrap .hero-orb3 {
  position: absolute; z-index: -1; inset: 0; width: auto; height: auto; top: 0; right: 0;
  border-radius: 0; filter: none; mask-image: none; -webkit-mask-image: none;
  background: none; pointer-events: none;
}
.auth-wrap .hero-grid::before, .auth-wrap .hero-grid::after,
.auth-wrap .hero-orb3::before, .auth-wrap .hero-orb3::after {
  content: ''; position: absolute; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
}
.auth-wrap .hero-grid::before  { left: 6%;  top: 14%; width: max(420px, 48vw); background: radial-gradient(closest-side, rgba(18, 199, 107, .6), transparent); }
.auth-wrap .hero-grid::after   { left: 96%; top: 24%; width: max(400px, 44vw); background: radial-gradient(closest-side, rgba(28, 200, 227, .55), transparent); }
.auth-wrap .hero-orb3::before  { left: 12%; top: 90%; width: max(360px, 38vw); background: radial-gradient(closest-side, rgba(255, 194, 51, .6), transparent); }
.auth-wrap .hero-orb3::after   { left: 90%; top: 86%; width: max(400px, 42vw); background: radial-gradient(closest-side, rgba(124, 92, 255, .42), transparent); }

.auth-wrap .auth-shell { max-width: 470px; padding: 0; }
.auth-wrap .auth-shell-wide { max-width: 620px; }

/* ---------- The glass card ---------- */
.auth-wrap .auth-card {
  position: relative; max-width: none;
  padding: 36px 34px 30px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .66));
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  box-shadow:
    inset 0 1px 1px #fff, inset 0 -1px 1px rgba(255, 255, 255, .35), inset 0 0 26px rgba(255, 255, 255, .4),
    0 2px 4px rgba(12, 35, 64, .05), 0 40px 80px -30px rgba(12, 35, 64, .42), 0 18px 40px -24px rgba(10, 160, 90, .32);
}
/* Specular rim: bright on the lit edge, fading round the body. */
.auth-wrap .auth-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.25px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .2) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .55) 88%, rgba(255, 255, 255, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.auth-wrap .auth-card .brand-mark-wrap { margin: 0 auto 18px; width: fit-content; padding: 8px 16px; border-radius: 22px; background: rgba(255, 255, 255, .82); box-shadow: inset 0 1px 1px #fff, 0 10px 24px -14px rgba(12, 35, 64, .45); }
.auth-wrap .auth-card .brand-mark-wrap img { height: 50px; filter: none; }
.auth-wrap .auth-card h1 { font-family: ZamaManrope, Arial, sans-serif; font-weight: 800; font-size: 2rem; letter-spacing: -.035em; line-height: 1.15; color: var(--ag-navy); margin-bottom: 8px; }
.auth-wrap .auth-card .auth-sub { color: var(--ag-copy); font-size: .95rem; margin-bottom: 16px; }

.auth-wrap .auth-trust-line { width: fit-content; margin: 0 auto 20px; padding: 6px 13px; border-radius: 999px; background: rgba(18, 199, 107, .12); box-shadow: inset 0 0 0 1px rgba(18, 199, 107, .22); color: var(--ag-green-deep); font-size: .76rem; font-weight: 600; }
.auth-wrap .auth-trust-line svg { opacity: 1; }

.auth-wrap .auth-banner { align-items: center; padding: 12px 14px; border-radius: 20px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 10px 24px -16px rgba(12, 35, 64, .4); color: var(--ag-ink); }
.auth-wrap .auth-banner-promo { background: linear-gradient(125deg, #ffe46b, #ffc233 55%, #ffb020); }
.auth-wrap .auth-banner-referral { background: linear-gradient(125deg, rgba(184, 245, 212, .9), rgba(159, 230, 242, .85)); }
.auth-wrap .auth-banner-icon { background: rgba(255, 255, 255, .85); box-shadow: inset 0 1px 1px #fff, 0 4px 10px -4px rgba(12, 35, 64, .35); }

/* ---------- Buttons ---------- */
.auth-wrap .auth-card .btn { border-radius: 999px; font-family: ZamaManrope, Arial, sans-serif; font-weight: 800; transition: transform .45s var(--ag-spring), box-shadow .3s, filter .3s; }
.auth-wrap .auth-card .btn:active { transform: scale(.97); transition-duration: .12s; }
.auth-wrap .auth-card .btn-primary {
  position: relative; isolation: isolate; width: 100%; min-height: 52px; margin-top: 6px;
  color: #fff; border: 1px solid rgba(255, 255, 255, .22); text-shadow: 0 1px 1px rgba(0, 40, 20, .3);
  background: linear-gradient(135deg, #06763a 0%, #056947 52%, #06627a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(0, 40, 30, .3), 0 14px 30px -12px rgba(10, 170, 100, .75);
}
.auth-wrap .auth-card .btn-primary::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .04) 38%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }
.auth-wrap .auth-card .btn-primary:hover { transform: translateY(-2px); filter: saturate(1.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(0, 40, 30, .3), 0 20px 38px -12px rgba(10, 190, 120, .85); }
.auth-wrap .btn-google { min-height: 50px; color: #1f1f1f; border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .75)); box-shadow: inset 0 1px 1px #fff, inset 0 -2px 6px rgba(12, 35, 64, .05), 0 12px 26px -16px rgba(12, 35, 64, .45); }
.auth-wrap .btn-google:hover { background: #fff; transform: translateY(-1px); }
/* Google's brand rules: the label stays neutral dark, never the card's link green. */
.auth-wrap .auth-card a.btn-google, .auth-wrap .auth-card a.btn-google:hover { color: #1f1f1f; }
.auth-wrap .auth-card .auth-divider { color: var(--ag-muted); letter-spacing: .1em; }
.auth-wrap .auth-card .auth-divider::before, .auth-wrap .auth-card .auth-divider::after { height: 1px; background: linear-gradient(90deg, rgba(12, 35, 64, 0), rgba(12, 35, 64, .16)); }
.auth-wrap .auth-card .auth-divider::after { background: linear-gradient(270deg, rgba(12, 35, 64, 0), rgba(12, 35, 64, .16)); }

/* ---------- Fields ---------- */
.auth-wrap .auth-card .form label { color: var(--ag-navy); font-weight: 600; font-size: .86rem; }
.auth-wrap .auth-card .form label small, .auth-wrap .auth-card .form small { color: var(--ag-muted); }
.auth-wrap .auth-card input:not([type='radio']):not([type='checkbox']):not([type='hidden']),
.auth-wrap .auth-card select {
  min-height: 50px; padding: 12px 15px;
  border: 1px solid rgba(12, 35, 64, .12); border-radius: 15px;
  background: rgba(255, 255, 255, .8); color: var(--ag-ink);
  font-family: ZamaManrope, Arial, sans-serif; font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(12, 35, 64, .06), 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s, box-shadow .25s, background .25s;
}
.auth-wrap .auth-card input:not([type='radio']):not([type='checkbox']):hover, .auth-wrap .auth-card select:hover { background: rgba(255, 255, 255, .94); }
.auth-wrap .auth-card input:not([type='radio']):not([type='checkbox']):focus, .auth-wrap .auth-card select:focus {
  outline: none; background: #fff; border-color: var(--ag-green); box-shadow: 0 0 0 4px rgba(18, 199, 107, .22), inset 0 1px 2px rgba(12, 35, 64, .04);
}
.auth-wrap .auth-card input::placeholder { color: #75849a; }
.auth-wrap .check-item { gap: 10px; color: var(--ag-copy); font-weight: 400; }
.auth-wrap .check-item input { width: 20px; height: 20px; accent-color: var(--ag-green-deep); }
.auth-wrap .auth-card a { color: var(--ag-green-deep); font-weight: 800; }
.auth-wrap .auth-card .auth-footer { color: var(--ag-copy); }
.auth-wrap .auth-card .auth-footer a { color: var(--ag-green-deep); }
/* WCAG 2.2 target size: the stacked footer links (Terms / Privacy) were < 24 px tall. */
.auth-wrap .auth-card .auth-footer a { display: inline-block; min-height: 24px; padding: 3px 6px; line-height: 18px; }
/* add-phone's Sign-out button carries an inline colour (#16a34a, 3.07:1 on the card). */
.auth-wrap .auth-card .auth-footer button { color: var(--ag-green-deep) !important; font-weight: 800 !important; }
.auth-wrap .auth-card :is(a, button, input, select):focus-visible { outline: 3px solid #b56d00; outline-offset: 3px; }

/* ---------- Register: "How will you use ZamaSU?" as tone-coloured glass tiles ---------- */
.auth-wrap .role-intro { color: var(--ag-navy); font-size: .95rem; margin-bottom: 12px; }
.auth-wrap .role-hint { color: var(--ag-muted); opacity: 1; }
.auth-wrap .role-tiles { gap: 10px; }
.auth-wrap .role-label-tile {
  --t1: #12c76b; --t2: #a6e22e; --tg: rgba(18, 199, 107, .16);
  gap: 5px; padding: 16px 10px 14px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  box-shadow: inset 0 1px 1px #fff, 0 10px 24px -16px rgba(12, 35, 64, .45);
  color: var(--ag-ink); text-decoration: none;
  transition: transform .45s var(--ag-spring), box-shadow .3s, background .3s, border-color .3s;
}
.auth-wrap #tile-provider   { --t1: #ffb020; --t2: #ff6a3d; --tg: rgba(255, 176, 32, .2); }
.auth-wrap #tile-company    { --t1: #7c5cff; --t2: #1cc8e3; --tg: rgba(124, 92, 255, .16); }
.auth-wrap #tile-shop-owner { --t1: #ff5c7a; --t2: #ffb020; --tg: rgba(255, 92, 122, .15); }
.auth-wrap #tile-taxi       { --t1: #1cc8e3; --t2: #3b82f6; --tg: rgba(28, 200, 227, .16); }
.auth-wrap #tile-marshal    { --t1: #d946ef; --t2: #ff5c7a; --tg: rgba(217, 70, 239, .14); }
.auth-wrap .role-label-tile .role-emoji {
  width: 48px; height: 48px; border-radius: 16px; font-size: 1.45rem;
  background: linear-gradient(140deg, var(--t1), var(--t2));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -4px 10px rgba(0, 0, 0, .1), 0 10px 20px -10px var(--t1);
}
.auth-wrap .role-tiles #tile-company .role-emoji { filter: none; }
.auth-wrap .role-label-tile strong { color: var(--ag-navy); }
.auth-wrap .role-label-tile .role-desc { color: var(--ag-muted); }
.auth-wrap .role-label-tile:hover { transform: translateY(-3px); border-color: #fff; box-shadow: inset 0 1px 1px #fff, 0 16px 30px -16px rgba(12, 35, 64, .5); }
.auth-wrap .role-label-tile:hover .role-emoji { transform: scale(1.1) rotate(-5deg); }
.auth-wrap .role-label-tile.selected,
.auth-wrap .role-label-tile:has(input:checked) {
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7)), var(--tg);
  background-blend-mode: normal;
  border-color: var(--t1);
  box-shadow: inset 0 1px 1px #fff, 0 0 0 2px var(--t1), 0 16px 32px -16px var(--t1);
  transform: translateY(-2px);
}
.auth-wrap .role-label-tile.selected .role-emoji,
.auth-wrap .role-label-tile:has(input:checked) .role-emoji { background: linear-gradient(140deg, var(--t1), var(--t2)); transform: scale(1.06); }
.auth-wrap .role-label-tile input:focus-visible + .role-emoji { outline: 3px solid #b56d00; outline-offset: 3px; }

/* ---------- Messages inside the card ---------- */
.auth-wrap .flash { border-radius: 18px; border-left-width: 0; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 10px 24px -16px rgba(12, 35, 64, .4); background: rgba(255, 255, 255, .86); }
.auth-wrap .flash-error { background: linear-gradient(125deg, #ffe4e8, #ffeede); color: #7a1025; }
.auth-wrap .flash-success { background: linear-gradient(125deg, #dcfbe9, #d8f5fb); color: #064d2a; }

@media (max-width: 480px) {
  .auth-wrap .auth-card { padding: 28px 18px 24px; border-radius: 28px; }
  .auth-wrap .auth-card h1 { font-size: 1.7rem; }
  .auth-wrap .role-label-tile { padding: 14px 8px 12px; border-radius: 20px; }
}

/* Glass never carries contrast on its own. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-wrap .auth-card { background: rgba(255, 255, 255, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .auth-wrap .auth-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .auth-wrap .role-label-tile, .auth-wrap .auth-card input:not([type='radio']):not([type='checkbox']), .auth-wrap .auth-card select { background: #fff; }
}
@media (forced-colors: active) {
  .auth-wrap .auth-card, .auth-wrap .role-label-tile, .auth-wrap .auth-card .btn { border: 1px solid CanvasText; }
  .auth-wrap .auth-card::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-wrap *, .auth-wrap *::before, .auth-wrap *::after { transition: none !important; animation: none !important; }
}
