/* THE SIGN-IN PAGES (2026-10-22): login now; signup, verify-email, forgot-password and
   set-password move onto the same shell next (includes/auth_shell.php). One file, both
   themes: the page sets data-theme on <html> from the portal's dpzTheme choice before it
   paints. Colours are the site's own tokens (the logo's #0066FF to #00FFFF, the portal's
   light and dark palettes); navy and violet appear only in the brand panel.
   Small text uses --muted, which passes WCAG AA in both themes (--dim does not).
   Review (2026-10-23): placeholders (--ph) at 4.5:1 or more, field borders (--field-line)
   at 3:1 or more (WCAG 1.4.11), the green notice at 4.9:1 in light; the form and the panel
   fit 1366x768 and 1280x720 without a scroll; tablets centre the form. */

:root,:root[data-theme=dark]{
  --bg:#0f1115;--surface:#161b23;--surface-2:#1b212b;
  --border:#2a3243;--border-2:#3a4459;
  --text:#f4f6fb;--text-2:#d4d9e3;--muted:#a3acbc;--dim:#6b7486;
  --primary:#0066ff;--primary-600:#0a55d4;--primary-ink:#5aa2ff;--cyan:#00ffff;
  --link:#5aa2ff;--link-hover:#8cc0ff;
  --field:#10141b;--field-hover:#131821;--field-line:#5d677b;--field-line-hover:#717b92;--ph:#7f889a;
  --wash:rgba(0,102,255,.14);
  --navy:#0B1B3A;--violet:#7c5cff;--violet-ink:#b39df0;
  --ring:rgba(0,229,255,.18);--focus:#00e5ff;
  --err-ink:#ffb4b4;--err-bg:rgba(255,107,107,.10);--err-line:rgba(255,107,107,.38);
  --ok-ink:#7ee2b8;--ok-bg:rgba(34,201,138,.12);--ok-line:rgba(34,201,138,.40);
  --info-ink:#a9cdff;--info-bg:rgba(0,102,255,.12);--info-line:rgba(90,162,255,.40);
  --warn-ink:#f6c76b;
  --skel-1:#171c25;--skel-2:#222937;
  --btn-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 12px 28px -14px rgba(0,102,255,.9);
  --card-bg:#121720;--card-line:rgba(255,255,255,.09);--card-ink:#f4f6fb;--card-muted:#a3acbc;
  --card-shadow:0 30px 80px -30px rgba(0,0,0,.75);
  color-scheme:dark}
:root[data-theme=light]{
  --bg:#ffffff;--surface:#f6f8fc;--surface-2:#eef2f8;
  --border:#d7deea;--border-2:#bcc7d9;
  --text:#0f1115;--text-2:#2b3446;--muted:#5c6679;--dim:#8b94a6;
  --primary:#0057db;--primary-600:#0046b0;--primary-ink:#0057db;--cyan:#0aa6bd;
  --link:#0057db;--link-hover:#0046b0;
  --field:#ffffff;--field-hover:#fbfcfe;--field-line:#8590a3;--field-line-hover:#69738a;--ph:#6b7486;
  --wash:rgba(0,87,219,.07);
  --navy:#0B1B3A;--violet:#7c5cff;--violet-ink:#6d4bc9;
  --ring:rgba(0,87,219,.18);--focus:#0057db;
  --err-ink:#a12b2b;--err-bg:#fdf1f1;--err-line:#f1c4c4;
  --ok-ink:#0f7a54;--ok-bg:#eefaf4;--ok-line:#b8e6d0;
  --info-ink:#0b4bb3;--info-bg:#eef4ff;--info-line:#c4d8fb;
  --warn-ink:#8a5a00;
  --skel-1:#eef2f8;--skel-2:#f7f9fc;
  --btn-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 12px 24px -14px rgba(0,87,219,.85);
  --card-bg:#ffffff;--card-line:rgba(15,17,21,.06);--card-ink:#0f1115;--card-muted:#5c6679;
  --card-shadow:0 30px 70px -28px rgba(3,12,40,.55);
  color-scheme:light}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.auth-body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--text);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.auth-body a{color:var(--link);text-decoration:none}
.auth-body a:hover{color:var(--link-hover);text-decoration:underline;text-underline-offset:3px}
.auth-body a:focus-visible,.auth-body button:focus-visible,.auth-body summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── the two columns ─────────────────────────────────────────────────────── */
.auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:16px;
  min-height:100vh;min-height:100dvh;padding:16px;max-width:1680px;margin:0 auto}
.auth-main{display:flex;flex-direction:column;min-width:0;padding:6px clamp(8px,3vw,44px) 4px}
.auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}
.auth-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:-.015em;color:var(--text)!important;text-decoration:none!important}
.auth-brand svg{width:32px;height:32px;flex:none;display:block}
.theme-btn{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border-radius:11px;border:1px solid var(--border);
  background:transparent;color:var(--muted);cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.theme-btn:hover{color:var(--text);border-color:var(--border-2);background:var(--surface)}
.theme-btn svg{width:18px;height:18px;display:block}
.theme-btn .i-sun{display:none}
:root[data-theme=dark] .theme-btn .i-sun{display:block}
:root[data-theme=dark] .theme-btn .i-moon{display:none}

.auth-center{flex:1;display:flex;align-items:center;justify-content:center;padding:clamp(24px,5vh,56px) 0}
.auth-card{width:100%;max-width:400px;animation:dz-rise .28s ease-out both}
@keyframes dz-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ── type ─────────────────────────────────────────────────────────────────── */
.auth-h1{font-size:clamp(30px,3.1vw,40px);line-height:1.1;font-weight:800;letter-spacing:-.035em;margin:0 0 12px;color:var(--text);text-wrap:balance}
.auth-h1 .hl{color:var(--primary-ink)}
:root[data-theme=dark] .auth-h1 .hl{background:linear-gradient(92deg,#3d8bff 10%,#22d3ee 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-sub{color:var(--muted);font-size:14.5px;margin:0 0 28px}
.auth-sub a{font-weight:600}
.auth-sub b{color:var(--text-2);font-weight:600;word-break:break-all}

/* ── messages ─────────────────────────────────────────────────────────────── */
.err,.ok,.info{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.45;margin:0 0 20px}
.err::before,.ok::before,.info::before{content:"";flex:none;width:18px;height:18px;margin-top:1px;background:currentColor;
  -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.err{background:var(--err-bg);border:1px solid var(--err-line);color:var(--err-ink);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E")}
.ok{background:var(--ok-bg);border:1px solid var(--ok-line);color:var(--ok-ink);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.7 2.7L16.5 9.5'/%3E%3C/svg%3E")}
.info{background:var(--info-bg);border:1px solid var(--info-line);color:var(--info-ink);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E")}

/* ── Continue with Google ─────────────────────────────────────────────────── */
.g-wrap[hidden]{display:none}
.g-slot{position:relative;min-height:44px;display:flex;justify-content:center;align-items:center}
.g-slot iframe{color-scheme:normal}
/* The placeholder has the shape of Google's "large" button (40px, 4px corners), so nothing jumps when it is drawn. */
.g-skel{width:100%;height:40px;border-radius:4px;border:1px solid var(--border);
  background:linear-gradient(90deg,var(--skel-1) 25%,var(--skel-2) 50%,var(--skel-1) 75%);background-size:200% 100%;animation:dz-shimmer 1.3s linear infinite}
@keyframes dz-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
.g-busy{display:none;align-items:center;justify-content:center;gap:10px;min-height:44px;border:1px solid var(--border);border-radius:10px;color:var(--text-2);font-size:14px;font-weight:600}
.g-wrap.is-busy .g-slot{display:none}
.g-wrap.is-busy .g-busy{display:flex}
.g-wrap.is-busy .g-busy .spin{border-color:var(--border-2);border-top-color:var(--primary)}
.auth-or{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px;margin:24px 0}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--border)}

/* ── fields ───────────────────────────────────────────────────────────────── */
.f{margin:0 0 18px}
.f label{display:block;font-size:14px;font-weight:600;color:var(--text-2);margin:0 0 8px}
.f input{display:block;width:100%;height:48px;padding:0 14px;border:1px solid var(--field-line);border-radius:12px;background:var(--field);
  color:var(--text);font:inherit;font-size:16px;transition:border-color .15s,box-shadow .15s,background .15s;-webkit-appearance:none;appearance:none}
.f input::placeholder{color:var(--ph);opacity:1}
.f input:hover{border-color:var(--field-line-hover);background:var(--field-hover)}
.f input:focus{outline:none;border-color:var(--focus);box-shadow:0 0 0 4px var(--ring)}
.f input[readonly]{background:var(--surface);color:var(--text-2);cursor:default}
.f input[readonly]:focus{box-shadow:none;border-color:var(--field-line-hover)}
.f input.otp{height:60px;font-family:ui-monospace,"SF Mono","Cascadia Code",Consolas,monospace;font-size:26px;letter-spacing:.42em;text-align:center;padding-left:.42em}
.f-hint{margin:8px 0 0;color:var(--muted);font-size:13px}
.f-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:-6px 0 22px}
.f-row a{font-size:14px;font-weight:600}
.auth-body .pw-eye{width:36px;height:36px;right:7px;border-radius:9px}
.auth-body .pw-eye:hover{background:var(--surface-2)}

/* ── the button ───────────────────────────────────────────────────────────── */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:50px;padding:0 20px;border:0;border-radius:12px;
  background:var(--primary);color:#fff;font:inherit;font-size:15.5px;font-weight:700;letter-spacing:.005em;cursor:pointer;
  box-shadow:var(--btn-shadow);transition:background .15s,box-shadow .15s,transform .06s}
.btn:hover{background:var(--primary-600)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.btn[disabled]{cursor:progress;opacity:.82}
.spin{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:dz-spin .7s linear infinite}
@keyframes dz-spin{to{transform:rotate(360deg)}}
.auth-alt{margin:24px 0 0;text-align:center;color:var(--muted);font-size:14.5px}
.auth-alt a{font-weight:700}

/* ── the left column's foot ───────────────────────────────────────────────── */
.auth-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;padding:14px 0 6px;color:var(--muted);font-size:13px}
.auth-foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.auth-foot a{color:var(--muted)}
.auth-foot a:hover{color:var(--text)}

/* ── the brand panel ──────────────────────────────────────────────────────── */
.auth-panel{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-width:0;border-radius:28px;color:#fff;
  padding:clamp(24px,2.6vw,40px);
  background:
    radial-gradient(55% 45% at 92% 4%,rgba(124,92,255,.55),transparent 62%),
    radial-gradient(45% 40% at 4% 100%,rgba(0,229,255,.22),transparent 62%),
    linear-gradient(155deg,var(--navy) 0%,#0a2a6b 48%,#0057db 100%)}
.auth-panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:44px 44px;background-position:-1px -1px;
  -webkit-mask-image:radial-gradient(80% 70% at 50% 42%,#000 25%,transparent 82%);mask-image:radial-gradient(80% 70% at 50% 42%,#000 25%,transparent 82%)}
.auth-panel::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:560px;height:560px;right:-210px;bottom:-250px;border-radius:50%;
  border:1px solid rgba(255,255,255,.14);box-shadow:0 0 0 70px rgba(255,255,255,.035),0 0 0 140px rgba(255,255,255,.022)}
.p-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.p-brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:-.015em;color:#fff!important;text-decoration:none!important}
.p-brand:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:8px}
/* With the panel on screen its logo is the brand; the form column keeps only the theme switch. */
@media (min-width:900px){.auth-top .auth-brand{visibility:hidden}}
.p-brand svg{width:34px;height:34px;flex:none;filter:drop-shadow(0 6px 18px rgba(0,229,255,.35))}
.p-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:24px 0}
.p-head{text-align:center;max-width:600px}
.p-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:.02em;color:#d6ecff;
  padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18)}
.p-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,.25)}
.p-h2{margin:14px 0 0;font-size:clamp(26px,2.4vw,36px);line-height:1.14;font-weight:800;letter-spacing:-.028em;color:#fff;text-wrap:balance}
.p-lede{display:none;margin:12px auto 0;max-width:470px;font-size:15px;line-height:1.55;color:rgba(235,243,255,.86)}
.p-card{width:100%;max-width:620px;background:var(--card-bg);color:var(--card-ink);border:1px solid var(--card-line);border-radius:22px;
  padding:22px 24px 24px;box-shadow:var(--card-shadow)}
.p-card h3{margin:0 0 18px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--card-muted)}
.p-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}
.p-list li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.p-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#0066ff 0%,#00b8f0 100%);box-shadow:0 8px 18px -8px rgba(0,102,255,.8)}
.p-ic svg{width:18px;height:18px;display:block}
.p-t{margin:1px 0 3px;font-size:14px;font-weight:700;line-height:1.35;color:var(--card-ink)}
.p-d{margin:0;font-size:13px;line-height:1.5;color:var(--card-muted)}
@media (min-width:1200px) and (min-height:980px){.p-lede{display:block}}
.p-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.p-chip,.p-help{display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:999px;font-size:13.5px;font-weight:600;color:#fff!important;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-decoration:none!important}
.p-chip svg,.p-help svg{width:16px;height:16px;flex:none}
.p-help{margin-left:auto;transition:background .15s,border-color .15s}
.p-help:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.4)}
.p-help:focus-visible{outline:2px solid #fff;outline-offset:2px}
.auth-panel.is-brand .p-body{gap:16px}
/* First-run setup has no feature card: its one line of copy keeps the panel from looking empty. */
.auth-panel.is-brand .p-lede{display:block}

/* ── sizes ────────────────────────────────────────────────────────────────── */
@media (max-width:1199px){
  .auth{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .p-list{grid-template-columns:minmax(0,1fr);gap:16px}
  .p-list li:nth-child(n+5){display:none}
}
/* "14-day free trial" and "Need help?" share one row on a narrower panel. */
@media (max-width:1279px){
  .p-chip-more{display:none}
}
/* Short laptop screens (1366x768, 1280x720, 1280x800): tighter vertical rhythm, so the form
   with Google's button fits without a scroll and the panel's foot stays on screen. */
@media (min-width:900px) and (max-height:820px){
  .auth-top{min-height:44px}
  .auth-center{padding:10px 0}
  .auth-h1{font-size:clamp(28px,2.6vw,34px);margin-bottom:10px}
  .auth-sub{margin-bottom:20px}
  .err,.ok,.info{margin-bottom:16px}
  .auth-or{margin:16px 0}
  .f{margin-bottom:14px}
  .f-row{margin:-4px 0 16px}
  .auth-alt{margin-top:16px}
  .p-body{gap:20px;padding:14px 0}
}
@media (min-width:900px) and (max-height:760px){
  .p-list li:nth-child(n+5){display:none}
}
@media (max-width:899px){
  .auth{display:block;padding:0}
  .auth-panel{display:none}
  .auth-main{min-height:100vh;min-height:100dvh;padding:8px 16px 4px}
  .auth-center{align-items:flex-start;padding:28px 0 36px}
  /* Without the panel, a soft brand-blue light at the top of the page. */
  body.auth-body{background:radial-gradient(140% 50% at 50% -14%,var(--wash),transparent 72%) no-repeat,var(--bg)}
}
/* Tablets: the form sits in the middle of the screen, not in its top third. */
@media (min-width:600px) and (max-width:899px) and (min-height:700px){
  .auth-main{padding:16px 28px 8px}
  .auth-center{align-items:center}
}
@media (max-width:479px){
  .auth-h1{font-size:27px}
  .auth-sub{margin-bottom:24px}
  .auth-foot{justify-content:center;text-align:center}
  .auth-foot nav{justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .auth-card{animation:none}
  .g-skel,.spin{animation-duration:2.4s}
  .btn,.f input,.theme-btn{transition:none}
}
@media (forced-colors:active){
  .auth-panel{border:1px solid CanvasText}
  .btn{border:1px solid ButtonText}
}
