/* zPayLink universal sign-in: design preview v2 (split screen). Calm, no background noise; one SVG illustration. */
@font-face { font-family: "Bank Gothic"; src: url("assets/fonts/BankGothic-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Bank Gothic"; src: url("assets/fonts/BankGothic-Medium.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bank Gothic"; src: url("assets/fonts/BankGothic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #060a14; --panel: #0a1226; --ink: #eef2ff; --ink-2: #c3cce3; --muted: #8b97b5; --faint: #5b6684;
  --accent: #3b7bff; --accent-2: #6aa6ff; --cyan: #5fd8ff;
  --line: rgba(150, 175, 230, .14); --line-2: rgba(150, 175, 230, .26); --field: #0b1222; --danger: #ff7a8a;
  --r: 12px; color-scheme: dark;
  /* brand type = corporate website (Bank Gothic); numbers, amounts and typed values keep the UI font */
  --brand: "Bank Gothic", Inter, ui-sans-serif, system-ui, sans-serif; --ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }

/* ------------------------------------------------------------------ left: form */
.pane-form { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vh, 72px) clamp(24px, 6vw, 96px); background: var(--bg); }
.form-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 36px; }
.brand-row { display: flex; align-items: center; }
.logo { height: 44px; width: auto; display: block; transition: opacity .25s; }
.intro h1 { margin: 0; font-family: var(--brand); font-size: clamp(27px, 2.8vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: .01em; }
.subtitle { margin: 12px 0 0; font-family: var(--brand); font-weight: 300; color: var(--muted); font-size: 15px; line-height: 1.6; letter-spacing: .01em; transition: opacity .25s; }
.is-swapping .logo, .is-swapping .subtitle, .is-swapping .art-kicker { opacity: .15; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--brand); font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--ink-2); }
.control { position: relative; }
.field input { width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.control input { padding-right: 48px; }
.field input::placeholder { color: var(--faint); }
.field input:hover { border-color: var(--line-2); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 123, 255, .18); }
.reveal { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.reveal:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.reveal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reveal .eye-off, .reveal[aria-pressed="true"] .eye { display: none; } .reveal[aria-pressed="true"] .eye-off { display: block; }
.field-foot { display: flex; justify-content: flex-end; }
.link { font-family: var(--brand); font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--accent-2); text-decoration: none; } .link:hover { text-decoration: underline; }
.alert { font-family: var(--brand); letter-spacing: .01em; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; color: #ffd3d9; background: rgba(255, 92, 112, .09); border: 1px solid rgba(255, 122, 138, .28); }
.alert[hidden] { display: none; }
.submit { position: relative; height: 50px; margin-top: 4px; border: 0; border-radius: var(--r); background: var(--accent); color: #fff; font-family: var(--brand); font-size: 15px; font-weight: 400; letter-spacing: .08em; cursor: pointer;
  transition: background .2s, transform .1s; }
.submit:hover { background: #4a86ff; } .submit:active { transform: translateY(1px); }
.submit .spinner { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; opacity: 0; }
.is-loading .submit { cursor: progress; } .is-loading .submit .label { opacity: 0; } .is-loading .submit .spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { margin: 0; font-family: var(--brand); font-weight: 300; font-size: 12.5px; letter-spacing: .01em; color: var(--faint); text-align: center; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; font-family: var(--brand); font-size: 13px; letter-spacing: .03em; color: var(--faint); }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); transition: color .2s; }
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.powered a { color: var(--muted); text-decoration: none; font-weight: 700; } .powered a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ right: illustration */
.pane-art { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 72px clamp(24px, 4vw, 64px) 56px; border-left: 1px solid var(--line);
  background: radial-gradient(70% 55% at 60% 38%, rgba(59, 123, 255, .16), transparent 70%), linear-gradient(180deg, #0b1530 0%, #081024 100%); }
.illus { width: min(100%, 560px); height: auto; overflow: visible; }
.orbit { fill: none; stroke: rgba(130, 160, 230, .08); stroke-width: 1; }
.orbit-2 { stroke-dasharray: 2 7; stroke: rgba(130, 160, 230, .1); }
.path-guide { fill: none; stroke: rgba(130, 165, 255, .22); stroke-width: 1.5; stroke-dasharray: 3 6; }
.path-live { fill: none; stroke: url(#route); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chip { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .18); }
.chip-line { stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }
.t-label { fill: #9fb3e3; font: 600 11px Inter, sans-serif; letter-spacing: .14em; }
.t-small { fill: #8e9fca; font: 500 12px Inter, sans-serif; }
.t-big { fill: #f3f6ff; font: 700 24px Inter, sans-serif; letter-spacing: -.02em; }
.t-mono { fill: #8e9fca; font: 500 12px Inter, sans-serif; letter-spacing: .08em; }
.check-bg { fill: #2fbf8a; }
.check { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pill { fill: rgba(10, 20, 44, .92); stroke: rgba(140, 170, 240, .22); }
.pill-dot { fill: #2fbf8a; } .pill-dot-blue { fill: var(--accent-2); }
.t-pill { fill: #dfe7ff; font: 600 13px Inter, sans-serif; }
.token-ring { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.t-token { fill: #fff; font: 700 17px Inter, sans-serif; }
.art-caption { max-width: 420px; text-align: center; }
.art-kicker { margin: 0; font-family: var(--brand); font-size: 11.5px; font-weight: 400; letter-spacing: .18em; color: var(--accent-2); transition: opacity .25s; }
.art-title { margin: 10px 0 0; font-family: var(--brand); font-size: 22px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.art-text { margin: 10px 0 0; font-family: var(--brand); font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------------ design-preview controls (preview only) */
.preview-tools { position: fixed; top: 16px; right: 16px; z-index: 10; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge-preview { font-family: var(--brand); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #ffd27a; background: rgba(255, 196, 80, .08);
  border: 1px solid rgba(255, 196, 80, .28); padding: 5px 9px; border-radius: 999px; }
.seg, .states { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(8, 14, 30, .85); border: 1px solid var(--line); }
.seg button, .states button { border: 0; background: transparent; color: var(--muted); font-family: var(--brand); font-size: 12px; font-weight: 400; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button:hover, .states button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { color: #fff; background: var(--accent); }
.states button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, .08); }

/* ------------------------------------------------------------------ motion + responsive */
@media (prefers-reduced-motion: reduce) { .submit .spinner { animation-duration: 2s; } }
@media (max-width: 1100px) { .split { grid-template-columns: 1.1fr .9fr; } .art-text { display: none; } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .pane-art { display: none; }                                  /* mobile: form only */
  .pane-form { align-items: flex-start; padding-top: 112px; }
  .preview-tools { left: 16px; justify-content: center; }
}
@media (max-width: 420px) { .states { display: none; } .seg button { padding: 6px 10px; } .form-wrap { gap: 30px; } }

/* ------------------------------------------------------------------ versions (Classic default, Signature via ?version=signature) */
html[data-version="classic"] .art-signature, html:not([data-version="signature"]) .art-signature, html[data-version="signature"] .art-classic { display: none; }
.secure-line { display: none; }
@media (max-width: 1240px) { .seg-version button, .seg-product button { padding: 6px 10px; } }
@media (max-width: 420px) { .preview-tools { gap: 6px; } .seg button { padding: 6px 9px; font-size: 11.5px; } }
