/* Auth pages (shared structure) — trimmed from the site stylesheet by CSS coverage (login, register, forgot-password at 1440/1024/390 with hover/focus/error states). styles.full.css is the untrimmed original. */

:root {
  --navy: #0f1b33;
  --coral: #8C52FF; --coral-text: #734BC6;   /* legacy variable names kept for the shared structure; values are PiggyPay violet */
  --coral-dark: #734BC6;
  --coral-soft: #F1EBFF;
  --cream: #f8f4f0;
  --paper: #ffffff;
  --ink: #101b31;
  --muted: #657086;
  --line: #e8e4e0;
  --green: #22a06b;
  --shadow-sm: 0 10px 30px rgba(15, 27, 51, 0.08);
  --container: 1200px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input { font: inherit; }
button,
a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2,
h3 {
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:focus-visible {
  outline: 3px solid rgba(140, 82, 255, .42);
  outline-offset: 3px;
}
.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1;
  text-decoration: none;
}
.logo-img { height: 39px; width: auto; display: block; }
@media (max-width: 760px) {
.logo-img { height: 27px; }
}
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: var(--coral-text);   /* #d63a22: white text 4.7:1 (WCAG AA); the brand coral stays in the glow */
  color: #fff;
  box-shadow: 0 12px 28px rgba(140, 82, 255, .26);
}
.button-primary:hover {
  background: #b93018;
  box-shadow: 0 16px 34px rgba(140, 82, 255, .32);
}
@media (max-width: 760px) {
html { scroll-padding-top: 78px; }
.logo { font-size: 25px; }
}
html, body { overscroll-behavior: none; }   /* no rubber-band pull at the top/bottom on phones */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-form-side { display: flex; flex-direction: column; padding: clamp(18px, 3.5vh, 34px) clamp(24px, 5vw, 70px) clamp(18px, 3.5vh, 40px); }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-topbar .logo { color: var(--navy); font-size: 24px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.auth-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.auth-back:hover { color: var(--coral-text); }
.auth-card { width: 100%; max-width: 428px; margin: auto; padding: clamp(12px, 3vh, 44px) 0 8px; }
.auth-eyebrow { color: var(--coral-text); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.auth-card h1 { margin: 12px 0 10px; color: var(--navy); font-size: clamp(30px, 4vw, 36px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.auth-sub { margin: 0 0 clamp(16px, 3vh, 30px); color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-field { margin-bottom: 17px; }
.auth-field > label { display: block; margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 800; }
.auth-input-wrap { position: relative; }
.auth-input { width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; color: var(--navy); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-input::placeholder { color: #9aa2b1; }
.auth-input:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(140, 82, 255, .13); }
.auth-input:focus-visible { outline: 0; }
.auth-pw-wrap .auth-input { padding-right: 48px; }
.auth-pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; }
.auth-pw-toggle:hover { color: var(--navy); background: #f4f2f0; }
.auth-pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; }
.auth-check { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; cursor: pointer; user-select: none; }
.auth-check input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--coral); cursor: pointer; }
.auth-check.terms { display: block; position: relative; padding-left: 28px; margin-bottom: 22px; line-height: 1.6; }
.auth-check.terms input { position: absolute; left: 0; top: 3px; margin: 0; }
.auth-check.terms a { white-space: normal; overflow-wrap: anywhere; }
.auth-check a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: rgba(101,112,134,.45); text-underline-offset: 2px; overflow-wrap: anywhere; }   /* client: same tone and weight as the surrounding text */
.auth-forgot { color: var(--coral-text); font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: normal; }

.auth-submit { width: 100%; }
.auth-alt { margin-top: 22px; color: var(--muted); font-size: 14.5px; text-align: center; }
.auth-alt a { color: var(--coral-text); font-weight: 850; text-decoration: none; }

.auth-legal-note { margin-top: 18px; color: #6b7588; font-size: 11.5px; line-height: 1.55; text-align: center; }
.auth-legal-note a { color: var(--muted); font-weight: 700; }
.auth-brand-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(28px, 4vh, 64px) clamp(56px, 6.5vw, 100px);   /* vertical padding scales with height: no page scroll on short screens */ background: radial-gradient(900px 460px at 78% -6%, rgba(140, 82, 255, .28), transparent 60%), radial-gradient(760px 520px at 12% 108%, rgba(43, 83, 164, .34), transparent 62%), var(--navy); color: #fff; }
.auth-brand-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.auth-brand-orb-1 { top: -90px; right: -70px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(140, 82, 255, .3), transparent 65%); }
.auth-brand-inner { position: relative; z-index: 2; width: 100%; max-width: 440px; text-align: left; }
.auth-brand-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 12px; font-weight: 750; }
.auth-brand-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 160, 107, .22); }
.auth-brand-inner h2 { font-size: clamp(28px, min(3.3vw, 5.2vh), 43px); font-weight: 900; letter-spacing: -.03em; line-height: 1.07; }
.auth-brand-inner h2 em { font-style: normal; color: var(--coral); }
.auth-brand-inner > p:not(.auth-brand-reg) { margin: 18px 0 32px; max-width: 400px; color: #aeb8c8; font-size: 15.5px; line-height: 1.62; }
.auth-points { display: grid; gap: 15px; }
.auth-point { display: flex; align-items: flex-start; gap: 13px; }
.auth-point .auth-point-ic { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: rgba(140, 82, 255, .18); border: 1px solid rgba(140, 82, 255, .32); color: #ff9d8d; }   /* specificity beats .auth-point span */
.auth-point-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-point div { padding-top: 1px; }
.auth-point strong { display: block; color: #fff; font-size: 14.5px; font-weight: 800; }
.auth-point span { color: #9aa6ba; font-size: 13px; line-height: 1.5; }
.auth-brand-reg { margin-top: clamp(20px, 4vh, 42px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #7d8aa0; font-size: 11px; line-height: 1.55; }
.auth-brand-reg strong { color: #c3ccda; font-weight: 800; letter-spacing: .03em; }
@media (max-width: 900px) {
html, body { height: 100%; }
body { overflow-x: hidden; }
.auth-wrap { grid-template-columns: 1fr; }
.auth-brand-side { display: none; }
.auth-form-side { min-height: 100svh; padding-top: 22px; padding-bottom: 30px; }
.auth-card { margin: 0; padding: clamp(28px, 6vh, 48px) 0 24px; }   /* phone: long forms (register) start near the top */
.auth-card--short { margin: auto 0; padding: 18px 0 0; }   /* phone: centred in the free space; no bottom padding, the free space itself is the air */
.auth-card--short .auth-legal-note { margin-top: 18px; }
.auth-form-side { padding-bottom: 8px; }
}
@media (max-width: 460px) {
.auth-card h1 { font-size: 28px; }
.auth-row { flex-wrap: wrap; gap: 10px; }
}
.auth-error{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(229,72,77,.45);border-radius:12px;background:rgba(229,72,77,.08);color:#8d1f24;font-size:14px;line-height:1.45}
.auth-error p{margin:0}
.auth-error p + p{margin-top:4px}
.auth-input.is-invalid,.auth-input[aria-invalid="true"]{border-color:#e5484d;box-shadow:0 0 0 4px rgba(229,72,77,.12)}
.auth-submit[aria-busy="true"]{opacity:.72;cursor:progress}

/* register has one more field and the agree block: tighter rhythm so 900px-tall screens do not scroll */
@media (min-width: 901px) and (max-height: 960px) {
.auth-card--register .auth-field { margin-bottom: 10px; }
.auth-card--register .auth-sub { margin-bottom: 18px; }
.auth-card--register .auth-legal-note { margin-top: 10px; }
.auth-card--register .auth-row { margin-bottom: 12px; }
.auth-card--register h1 { margin: 10px 0 8px; }
.auth-card--register { padding-top: 12px; padding-bottom: 12px; }
}

/* short desktop screens: tighten the form so the page never scrolls */
@media (min-width: 901px) and (max-height: 720px) {
.auth-card h1 { font-size: 27px; margin: 8px 0 6px; }
.auth-sub { margin-bottom: 14px; font-size: 14px; }
.auth-field { margin-bottom: 11px; }
.auth-field > label { margin-bottom: 6px; }
.auth-row { margin: 2px 0 14px; }
.auth-legal-note { margin-top: 14px; }
.auth-brand-inner > p { margin: 12px 0 18px; }
.auth-points { gap: 10px; }
.auth-brand-reg { margin-top: 16px; padding-top: 14px; }
.auth-brand-side { padding-top: 20px; padding-bottom: 20px; }
.auth-brand-inner h2 { font-size: 30px; }
.auth-brand-reg { font-size: 10.5px; }
.auth-card { padding-top: 6px; padding-bottom: 6px; }
.auth-form-side { padding-top: 16px; padding-bottom: 16px; }
.auth-field, .auth-card--register .auth-field { margin-bottom: 9px; }
.auth-legal-note, .auth-card--register .auth-legal-note { margin-top: 8px; }
.auth-card--register .auth-sub { margin-bottom: 10px; }
.auth-card--register .auth-row { margin: 0 0 10px; }
.auth-card--register h1 { margin: 6px 0 4px; }
}

/* register: first name + surname side by side; captcha slot */
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field-row .auth-field { min-width: 0; }
.auth-captcha:empty { display: none; }
.auth-captcha { margin: 0 0 14px; }
@media (max-width: 460px) { .auth-field-row { grid-template-columns: 1fr; gap: 0; } }

/* language switcher in the top bar: pill with flag + code, list below like the cabinet's */
.auth-topbar-right { display: flex; align-items: center; gap: 14px; }
.auth-lang { position: relative; }
.auth-lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 9px; border-radius: 999px; border: 1.5px solid #e6e9ef; background: #fff; color: var(--navy); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.auth-lang-btn:hover { border-color: #cfd5e0; }
.auth-lang-btn, .auth-lang-list li { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.auth-lang-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.auth-lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.auth-lang-flag, .auth-lang-list img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: block; }
.auth-lang-list { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; min-width: 196px; max-height: min(420px, calc(100dvh - 90px)); overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid #e6e9ef; border-radius: 14px; box-shadow: 0 18px 44px rgba(16, 24, 40, .14); }
.auth-lang-list[hidden] { display: none; }
.auth-lang-list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; -webkit-tap-highlight-color: transparent; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.auth-lang-list li:hover { background: #f4f6fa; }
.auth-lang-list li[aria-selected="true"] { color: var(--coral-text); }
@media (max-width: 460px) { .auth-topbar-right { gap: 10px; } .auth-lang-btn { height: 34px; padding: 0 8px; font-size: 12.5px; } .auth-back { font-size: 13px; } }   /* phone: keep the Back label, shrink the language pill instead */

/* ---- motion (ported from IDELSTAR login): email validity mark + submit success ---- */
.auth-input-wrap { position: relative; }
.auth-mark { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: #16a34a; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .28s cubic-bezier(.34,1.4,.64,1); }
.auth-mark.is-on { opacity: 1; transform: scale(1); }
.auth-mark.is-no { color: #e5484d; }
.auth-mark circle, .auth-mark path { fill: none; stroke: #16a34a; stroke-linecap: round; stroke-linejoin: round; }   /* explicit: iOS lost currentColor on the re-created node */
.auth-mark.is-no circle, .auth-mark.is-no path { stroke: #e5484d; }
.auth-mark circle { stroke-width: 1.5; stroke-dasharray: 57; stroke-dashoffset: 57; }
.auth-mark path { stroke-width: 1.9; stroke-dasharray: 16; stroke-dashoffset: 16; }
.auth-mark.is-on circle { animation: auth-draw .35s ease forwards; }
.auth-mark.is-on path { animation: auth-draw .3s ease .2s forwards; }
.auth-mark.is-on path.x2 { animation-delay: .38s; }
.auth-pw-wrap .auth-mark { right: 48px; }
.auth-input-wrap.has-mark .auth-input { padding-right: 44px; }
.auth-pw-wrap.has-mark .auth-input { padding-right: 78px; }
@keyframes auth-draw { to { stroke-dashoffset: 0; } }

.auth-submit { position: relative; overflow: hidden; transition: background-color .35s ease, transform .15s ease, opacity .2s ease; }
.auth-submit:active { transform: scale(.98); }
.auth-submit .auth-submit-in { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .28s cubic-bezier(.4,0,1,1), transform .28s cubic-bezier(.4,0,1,1); }
.auth-submit.is-busy .auth-submit-in, .auth-submit.is-done .auth-submit-in { opacity: 0; transform: translateX(70px); }
.auth-submit .auth-spin, .auth-submit .auth-submit-check { position: absolute; left: 50%; top: 50%; opacity: 0; }
.auth-submit .auth-spin { width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; }
.auth-submit.is-busy .auth-spin { opacity: 1; animation: auth-spin .7s linear infinite; }
.auth-submit.is-busy { opacity: .85; }
.auth-submit.is-done { background: #16a34a; opacity: 1; }
.auth-submit .auth-submit-check { width: 24px; height: 24px; margin: -12px 0 0 -12px; color: #fff; transform: scale(.5); }
.auth-submit .auth-submit-check path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.auth-submit.is-done .auth-submit-check { opacity: 1; transform: scale(1); transition: opacity .2s ease .12s, transform .35s cubic-bezier(.34,1.4,.64,1) .12s; }
.auth-submit.is-done .auth-submit-check path { animation: auth-draw .45s ease-out .2s forwards; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-mark, .auth-mark *, .auth-submit, .auth-submit *, .auth-lang-list, .auth-lang-list * { animation: none !important; transition: none !important; }
  .auth-mark.is-on circle, .auth-mark.is-on path.show { stroke-dashoffset: 0 !important; }
  .auth-submit.is-done .auth-submit-check path { stroke-dashoffset: 0 !important; }
  .auth-submit.is-done .auth-submit-check { opacity: 1; transform: none; }
}

/* ---- links: no stock underline / tap flash; an animated underline grows from the left on hover and on tap ---- */
a { -webkit-tap-highlight-color: transparent; }
.auth-forgot, .auth-alt a, .auth-check a, .auth-legal-note a, .auth-back {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0% 1.5px; background-position: 0 100%; transition: background-size .28s cubic-bezier(.22,.61,.36,1), color .2s ease; padding-bottom: 1px; }
@media (hover: hover) { .auth-forgot:hover, .auth-alt a:hover, .auth-check a:hover, .auth-legal-note a:hover { background-size: 100% 1.5px; } }
@media (hover: hover) { .auth-forgot:active, .auth-alt a:active, .auth-check a:active, .auth-legal-note a:active { background-size: 100% 1.5px; transition-duration: .12s; } }
@media (hover: none) { .auth-forgot:active, .auth-alt a:active, .auth-check a:active, .auth-legal-note a:active { opacity: .7; } }   /* phone: no underline on tap, just a soft press */
.auth-back:hover { background-size: 0; }

/* ---- language list: always in the DOM, fades/slides in and out ---- */
.auth-lang-list { display: block; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1); }
.auth-lang.is-open .auth-lang-list { opacity: 1; transform: none; pointer-events: auto; }
.auth-lang-list li { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .24s cubic-bezier(.22,.61,.36,1); }
.auth-lang.is-open .auth-lang-list li { opacity: 1; transform: none; }
.auth-lang.is-open .auth-lang-list li:nth-child(2) { transition-delay: 0.025s; }
.auth-lang.is-open .auth-lang-list li:nth-child(3) { transition-delay: 0.050s; }
.auth-lang.is-open .auth-lang-list li:nth-child(4) { transition-delay: 0.075s; }
.auth-lang.is-open .auth-lang-list li:nth-child(5) { transition-delay: 0.100s; }
.auth-lang.is-open .auth-lang-list li:nth-child(6) { transition-delay: 0.125s; }
.auth-lang.is-open .auth-lang-list li:nth-child(7) { transition-delay: 0.150s; }
.auth-lang.is-open .auth-lang-list li:nth-child(8) { transition-delay: 0.175s; }
.auth-lang.is-open .auth-lang-list li:nth-child(9) { transition-delay: 0.200s; }
.auth-lang.is-open .auth-lang-list li:nth-child(10) { transition-delay: 0.225s; }
.auth-lang.is-open .auth-lang-list li:nth-child(11) { transition-delay: 0.250s; }
.auth-lang.is-open .auth-lang-list li:nth-child(12) { transition-delay: 0.275s; }
.auth-lang-btn svg { transition: transform .22s ease; }

/* ---- email mark: paths are always rendered; iOS needs the element present before the stroke animation starts ---- */
.auth-mark path { display: none; }
.auth-mark path.show { display: block; }

@media (hover: none) { body { cursor: pointer; } }   /* iOS: makes outside taps dispatch events */

/* ---- language list: a slim, always-visible scrollbar in the brand palette ---- */
.auth-lang-list { scrollbar-width: none; padding-right: 14px; }
.auth-lang-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.auth-lang-rail { position: absolute; z-index: 51; top: calc(100% + 8px + 14px); height: calc(min(420px, 100dvh - 90px) - 28px); right: 7px; width: 4px; border-radius: 999px; background: #eceff4; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.auth-lang.is-open .auth-lang-rail { opacity: 1; }
.auth-lang-rail i { position: absolute; left: 0; right: 0; top: 0; height: 40%; border-radius: 999px; background: #aeb8c8; display: block; }

.auth-lang-list li:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-input::placeholder { color: #6b7588; opacity: 1; }
.auth-card, .auth-field, .auth-row, .auth-row > * { min-width: 0; }
.auth-forgot { white-space: normal; text-align: right; }
@media (hover: none), (pointer: coarse) {
  .auth-pw-toggle { width: 44px; height: 44px; }
  .auth-lang-btn { height: 44px; }
  .auth-back { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-check, .auth-forgot, .auth-alt a { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-lang-list li { min-height: 44px; }
}


/* desktop: everything 20% smaller (Igor, 14.10) — proportional, no layout change */
@media (min-width: 901px) { .auth-form-side, .auth-brand-side { zoom: .8; } .auth-wrap { min-height: 100vh; } .auth-form-side, .auth-brand-side { min-height: calc(100vh / .8); } }

.auth-hint { margin: 6px 0 0; font-size: 12.5px; color: #c2281a; }
.auth-hint[hidden] { display: none; }

/* Edge/Chromium show the native password "eye" while typing; we have our own toggle */
.auth-input::-ms-reveal, .auth-input::-ms-clear { display: none; }
.auth-input::-webkit-credentials-auto-fill-button { visibility: hidden; pointer-events: none; position: absolute; right: 0; }

/* touch targets must stay ≥44px AFTER the desktop zoom(.8): 44/.8 = 55px */
@media (pointer: coarse) and (min-width: 901px) {
  .auth-pw-toggle { width: 55px; height: 55px; }
  .auth-lang-btn { height: 55px; }
  .auth-back, .auth-check, .auth-forgot, .auth-alt a { min-height: 55px; display: inline-flex; align-items: center; }
  .auth-lang-list li { min-height: 55px; }
}
.auth-topbar .logo { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- two-factor screen: six code cells over one real input, help box ---------- */
.auth-otp { position: relative; }
.auth-otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; caret-color: transparent; background: transparent; z-index: 1; cursor: text; }
.auth-otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, 1.6vw, 10px); }
.auth-otp-cells i { position: relative; display: grid; place-items: center; height: 58px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
  color: var(--navy); font-style: normal; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; transition: border-color .2s ease, box-shadow .2s ease, transform .2s cubic-bezier(.2, 0, 0, 1); }
.auth-otp-cells i.is-filled { border-color: #cfc9c3; animation: auth-otp-pop .22s cubic-bezier(.2, 0, 0, 1); }
.auth-otp-cells i.is-caret { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 101, 77, .13); }
.auth-otp-cells i.is-caret::after { content: ""; width: 2px; height: 24px; border-radius: 1px; background: var(--coral-text); animation: auth-otp-blink 1s steps(1) infinite; }
.auth-otp.is-error .auth-otp-cells { animation: auth-otp-shake .4s cubic-bezier(.36, .07, .19, .97); }
.auth-otp.is-error .auth-otp-cells i { border-color: var(--coral-text); }
@keyframes auth-otp-pop { from { transform: scale(.92); } to { transform: scale(1); } }
@keyframes auth-otp-blink { 50% { opacity: 0; } }
@keyframes auth-otp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .auth-otp-cells i, .auth-otp.is-error .auth-otp-cells { animation: none; } }
.auth-help { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f6; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.auth-help p { margin: 0 0 8px; }
.auth-help-title { color: var(--navy); font-size: 15px; font-weight: 850; margin-bottom: 8px !important; }
.auth-help-sub { color: var(--navy); font-weight: 800; margin: 12px 0 4px !important; }
.auth-help ul { margin: 0 0 12px; padding-left: 18px; }
.auth-help li { margin: 2px 0; }
.auth-help-mail { margin: 0 !important; color: var(--navy); font-weight: 800; }
.auth-help-mail a { color: var(--coral-text); font-weight: 800; text-decoration: none; }
.auth-help-mail a:hover { text-decoration: underline; }
@media (max-width: 420px) { .auth-otp-cells i { height: 52px; font-size: 22px; } .auth-help { padding: 16px; } }
/* "Lost access" box as a dropdown */
.auth-help { padding: 0; }
.auth-help-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 20px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; border-radius: 14px; }
.auth-help-toggle .auth-help-title { margin: 0 !important; font-size: 14.5px; }
.auth-help-toggle svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.2, 0, 0, 1); }
.auth-help-toggle:hover svg { stroke: var(--navy); }
.auth-help-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.auth-help.is-open .auth-help-toggle svg { transform: rotate(180deg); }
.auth-help-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.2, 0, 0, 1); }
.auth-help.is-open .auth-help-body { grid-template-rows: 1fr; }
.auth-help-in { min-height: 0; overflow: hidden; padding: 0 20px; opacity: 0; transition: opacity .25s ease, padding .38s cubic-bezier(.2, 0, 0, 1); }
.auth-help.is-open .auth-help-in { opacity: 1; padding-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .auth-help-body, .auth-help-in, .auth-help-toggle svg { transition: none; } }
@media (max-width: 420px) { .auth-help { padding: 0; } .auth-help-toggle { padding: 14px 16px; } .auth-help-in { padding: 0 16px; } }
/* the 2FA card lifts above the phone keyboard (transform set by the page script) */
.auth-card--2fa { transition: transform .32s cubic-bezier(.2, 0, 0, 1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .auth-card--2fa { transition: none; } }
/* closed help: not reachable by Tab or a screen reader (visibility waits for the close animation) */
.auth-help-in { visibility: hidden; transition: opacity .25s ease, padding .38s cubic-bezier(.2, 0, 0, 1), visibility 0s linear .38s; }
.auth-help.is-open .auth-help-in { visibility: visible; transition: opacity .25s ease, padding .38s cubic-bezier(.2, 0, 0, 1), visibility 0s; }
