/* PiggyPay auth skin — sits on top of auth.css (shared structure and behaviour).
   Palette and fonts are taken from the PiggyPay cabinet: dark #1D1C1E / #1F1D27, panels #423C59,
   accent violet #8C52FF (pressed #734BC6, light #A885ED), blue #5271FF; Montserrat for headings, Inter for text.
   Default theme is dark; html.pp-light (localStorage pp_theme, same key as the cabinet) switches to light. */

@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/Montserrat-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter_24pt-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter_28pt-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter_28pt-SemiBold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }

:root {
  --pg-bg: #1D1C1E;
  --pg-bg-2: #1F1D27;
  --pg-panel: rgba(31, 29, 39, .72);
  --pg-panel-solid: #24212E;
  --pg-field: #2A2734;
  --pg-field-line: #3D3850;
  --pg-line: rgba(255, 255, 255, .09);
  --pg-text: #F0F0F0;
  --pg-text-2: #C9C6D6;
  --pg-muted: #9C98B3;
  --pg-violet: #8C52FF;
  --pg-violet-2: #734BC6;
  --pg-violet-soft: #B596FF;
  --pg-blue: #5271FF;
  --pg-glass-blur: 22px;
  --pg-card-shadow: 0 30px 80px rgba(8, 6, 20, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  --pg-grad: linear-gradient(120deg, #7A3FF2 0%, #5F4BEA 55%, #4459E6 100%);   /* deeper than the brand #8C52FF/#5271FF so white text stays >= 4.5:1 */
  color-scheme: dark;
}

html, body { background: var(--pg-bg); }
body.auth-body {
  color: var(--pg-text);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(29, 28, 30, .78) 0%, rgba(29, 28, 30, .7) 45%, rgba(20, 18, 28, .86) 100%),
    url("../assets/bg.webp") center / cover no-repeat fixed,
    var(--pg-bg);
}
@media (max-width: 900px) {
  body.auth-body { background:
    linear-gradient(180deg, rgba(29, 28, 30, .8) 0%, rgba(29, 28, 30, .72) 50%, rgba(20, 18, 28, .9) 100%),
    url("../assets/bg-m.webp") center top / cover no-repeat,
    var(--pg-bg); background-attachment: scroll; }
}
:focus-visible { outline-color: rgba(140, 82, 255, .55); }

/* ---- layout: brand panel on the LEFT, form card on the right ---- */
@media (min-width: 901px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-brand-side { order: -1; background: none; color: var(--pg-text); overflow: visible; }   /* visible: the clipped glows drew a hard seam down the middle */
@media (min-width: 901px) {
  .auth-wrap { position: relative; overflow: clip; }   /* glows bleed across the columns but never add a page scroll */
  /* the logo belongs to the brand panel on the left, not to the middle of the page */
  .auth-topbar .logo { position: absolute; top: clamp(18px, 3.5vh, 34px); left: clamp(40px, 6vw, 96px); }
  .auth-topbar { justify-content: flex-end; }
}

/* logo: light text on dark, dark text on light */
.logo-img { height: 40px; width: auto; }
.logo-img--light { display: none; }
html.pp-light .logo-img--dark { display: none; }
html.pp-light .logo-img--light { display: block; }
@media (max-width: 760px) { .logo-img { height: 32px; } }

/* ---- glass form card ---- */
.auth-card {
  max-width: 452px;
  padding: clamp(26px, 4vh, 40px) clamp(22px, 3vw, 36px) clamp(22px, 3vh, 30px);
  border-radius: 28px;
  background: var(--pg-panel);
  -webkit-backdrop-filter: blur(var(--pg-glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--pg-glass-blur)) saturate(1.2);
  box-shadow: var(--pg-card-shadow);
  position: relative;
  isolation: isolate;
}
/* soft violet rim that fades towards the bottom */
.auth-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(168, 133, 237, .65), rgba(82, 113, 255, .25) 40%, rgba(255, 255, 255, .04) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.auth-eyebrow { color: var(--pg-violet-soft); font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .14em; }
.auth-card h1 { color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { color: var(--pg-text-2); }

/* ---- fields ---- */
.auth-field > label { color: var(--pg-text-2); font-weight: 600; letter-spacing: .01em; }
.auth-input {
  height: 54px; border-radius: 14px; border: 1.5px solid var(--pg-field-line);
  background: var(--pg-field); color: #fff; caret-color: var(--pg-violet-soft);
}
.auth-input::placeholder { color: #A29DB8; }
.auth-input:hover { border-color: #4C4566; }
.auth-input:focus { border-color: var(--pg-violet); box-shadow: 0 0 0 4px rgba(140, 82, 255, .22); background: #2E2A3A; }
.auth-input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px var(--pg-field) inset; caret-color: #fff; }
.auth-pw-toggle { color: var(--pg-muted); }
.auth-pw-toggle:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.auth-check { color: var(--pg-text-2); }
.auth-check input { accent-color: var(--pg-violet); }
.auth-check a { text-decoration-color: rgba(201, 198, 214, .45); }
.auth-forgot { color: var(--pg-violet-soft); font-weight: 600; }
.auth-hint { color: #FF8A8E; }
.auth-error { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .45); color: #FFB4B6; }

/* ---- primary button: violet → blue gradient with a glow ---- */
.button { font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: .01em; border-radius: 16px; }
.button-primary { background: var(--pg-grad); color: #fff; box-shadow: 0 14px 34px rgba(140, 82, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .18); }
.button-primary:hover { background: var(--pg-grad); filter: brightness(1.08); box-shadow: 0 18px 40px rgba(140, 82, 255, .48), inset 0 1px 0 rgba(255, 255, 255, .22); }
.button-primary:active { filter: brightness(.95); }
.auth-submit.is-done { background: #15803d; filter: none; box-shadow: 0 14px 34px rgba(21, 128, 61, .35); }

.auth-alt { color: var(--pg-muted); }
.auth-alt a { color: var(--pg-violet-soft); font-weight: 700; }
.auth-alt--corp { margin-top: 8px; font-size: 13.5px; }
.auth-alt--corp a { color: var(--pg-text-2); font-weight: 600; }
.auth-legal-note { color: #A6A1BC; }
.auth-legal-note a { color: var(--pg-text-2); }

/* ---- top bar: back link, language pill, theme switch ---- */
.auth-back { color: var(--pg-text-2); }
.auth-back:hover { color: #fff; }
.auth-lang-btn { background: rgba(31, 29, 39, .7); border-color: #423C59; color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth-lang-btn:hover { border-color: var(--pg-violet); }
.auth-lang-list { background: #24212E; border-color: #423C59; box-shadow: 0 20px 50px rgba(8, 6, 20, .55); }
.auth-lang-list li { color: var(--pg-text); }
.auth-lang-list li:hover { background: #423C59; }
.auth-lang-list li[aria-selected="true"] { color: #fff; background: rgba(140, 82, 255, .22); }
.auth-lang-list li:focus-visible { outline-color: var(--pg-violet); }
.auth-lang-rail { background: #3A3548; }
.auth-lang-rail i { background: #8C84A8; }

.pp-theme { display: inline-flex; align-items: center; height: 36px; padding: 0; margin: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pp-theme:focus { outline: none; }
.pp-theme:focus-visible .pp-theme__track { box-shadow: 0 0 0 3px rgba(140, 82, 255, .45); }
.pp-theme__track { position: relative; display: block; width: 58px; height: 34px; border-radius: 999px; background: #423C59; transition: background-color .25s cubic-bezier(.16, 1, .3, 1); }
.pp-theme__knob { position: absolute; top: 3px; left: 3px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: #fff; color: #1D1C1E; box-shadow: 0 1px 3px rgba(8, 6, 20, .35); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.pp-theme__knob svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-theme__moon { fill: currentColor !important; stroke: none !important; }
.pp-theme__sun { display: none; }
.pp-theme[aria-checked="true"] .pp-theme__track { background: var(--pg-violet); }
.pp-theme[aria-checked="true"] .pp-theme__knob { transform: translateX(24px); }
.pp-theme[aria-checked="true"] .pp-theme__moon { display: none; }
.pp-theme[aria-checked="true"] .pp-theme__sun { display: block; }
@media (hover: none), (pointer: coarse) { .pp-theme { height: 44px; } }
@media (max-width: 460px) { .pp-theme__track { width: 50px; height: 30px; } .pp-theme__knob { width: 24px; height: 24px; } .pp-theme[aria-checked="true"] .pp-theme__knob { transform: translateX(20px); } }

/* ---- brand panel (desktop): headline + wallet preview + points ---- */
.pg-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.pg-glow--a { width: 460px; height: 460px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(140, 82, 255, .38), transparent 66%); }
.pg-glow--b { width: 420px; height: 420px; right: -60px; bottom: -120px; background: radial-gradient(circle, rgba(82, 113, 255, .32), transparent 66%); }
.auth-brand-inner { max-width: 470px; }
.auth-brand-badge { border-color: rgba(168, 133, 237, .35); background: rgba(140, 82, 255, .12); color: var(--pg-text); font-family: "Montserrat", sans-serif; font-weight: 600; }
.auth-brand-badge .dot { background: var(--pg-violet-soft); box-shadow: 0 0 0 4px rgba(140, 82, 255, .25); }
.auth-brand-inner h2 { font-family: "Montserrat", sans-serif; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.auth-brand-inner h2 em { background: var(--pg-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand-inner > p { color: var(--pg-text-2); }
.auth-brand-inner > p:not(.auth-brand-reg) { margin: 18px 0 26px; }

.pg-wallet {
  margin: 0 0 28px; padding: 18px; border-radius: 22px;
  background: rgba(31, 29, 39, .66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(8, 6, 20, .45), 0 0 0 1px rgba(255, 255, 255, .07) inset;
  transform: rotate(-1.5deg); transform-origin: left center;
}
.pg-wallet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; }
.pg-wallet__head span { color: var(--pg-muted); font-size: 13px; font-weight: 600; }
.pg-wallet__head b { color: #fff; font-family: "Montserrat", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.pg-wallet__head small { color: var(--pg-muted); font-size: 16px; font-weight: 600; }
.pg-wallet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-coin { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; color: #1D1C1E; }
.pg-coin__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 15px; color: #fff; }
.pg-coin__ic--eur { background: #5271FF; }
.pg-coin__ic--usd { background: #22A06B; }
.pg-coin__ic--usdt { background: #26A17B; }
.pg-coin__ic--btc { background: #F7931A; }
.pg-coin span { color: #6B6880; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.pg-coin b { font-family: "Montserrat", sans-serif; font-size: 15px; font-weight: 700; line-height: 1.25; }

.auth-point .auth-point-ic { background: rgba(140, 82, 255, .16); border-color: rgba(168, 133, 237, .35); color: #C9B3FF; border-radius: 12px; }
.auth-point strong { color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; }
.auth-point span { color: var(--pg-muted); }

/* ---- phones: card floats on the dark background; long register form starts near the top ---- */
@media (max-width: 900px) {
  .auth-form-side { padding-left: 16px; padding-right: 16px; }
  .auth-topbar { padding: 0 4px; }
  .auth-card, .auth-card--short { margin-top: 18px; padding: 26px 20px 22px; border-radius: 24px; }
  .auth-card--short { margin-top: auto; margin-bottom: auto; }
}
@media (max-width: 460px) {
  .auth-topbar-right { gap: 8px; }
  .auth-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* phone: label hidden visually, still read by screen readers */
  .auth-back { width: 44px; justify-content: center; }
  .auth-back svg { width: 22px; height: 22px; }
}

/* ======================= light theme ======================= */
html.pp-light { color-scheme: light; }
html.pp-light, html.pp-light body { background: #F3F2F8; }
html.pp-light body.auth-body {
  color: #1D1C1E;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(140, 82, 255, .16), transparent 60%),
    radial-gradient(760px 520px at 100% 110%, rgba(82, 113, 255, .14), transparent 62%),
    #F3F2F8;
}
html.pp-light .auth-card { background: rgba(255, 255, 255, .86); box-shadow: 0 24px 60px rgba(29, 28, 30, .1), 0 0 0 1px #E4E2EE inset; }
html.pp-light .auth-card::before { background: linear-gradient(160deg, rgba(140, 82, 255, .45), rgba(82, 113, 255, .15) 40%, transparent 75%); }
html.pp-light .auth-eyebrow { color: var(--pg-violet-2); }
html.pp-light .auth-card h1 { color: #1D1C1E; }
html.pp-light .auth-sub, html.pp-light .auth-field > label, html.pp-light .auth-check { color: #6B6880; }
html.pp-light .auth-field > label { color: #1D1C1E; }
html.pp-light .auth-input { background: #FAF9FD; border-color: #D9D6E6; color: #1D1C1E; caret-color: var(--pg-violet); }
html.pp-light .auth-input:hover { border-color: #C2BDD6; }
html.pp-light .auth-input:focus { background: #fff; border-color: var(--pg-violet); box-shadow: 0 0 0 4px rgba(140, 82, 255, .15); }
html.pp-light .auth-input::placeholder { color: #6E6A85; }
html.pp-light .auth-input:-webkit-autofill { -webkit-text-fill-color: #1D1C1E; -webkit-box-shadow: 0 0 0 1000px #FAF9FD inset; }
html.pp-light .auth-pw-toggle:hover { color: #1D1C1E; background: #EFEDF7; }
html.pp-light .auth-forgot, html.pp-light .auth-alt a { color: var(--pg-violet-2); }
html.pp-light .auth-alt, html.pp-light .auth-legal-note { color: #6B6880; }
html.pp-light .auth-alt--corp a, html.pp-light .auth-legal-note a { color: #1D1C1E; }
html.pp-light .auth-back { color: #6B6880; }
html.pp-light .auth-back:hover { color: #1D1C1E; }
html.pp-light .auth-lang-btn { background: #fff; border-color: #D9D6E6; color: #1D1C1E; }
html.pp-light .auth-lang-list { background: #fff; border-color: #E4E2EE; box-shadow: 0 12px 28px rgba(29, 28, 30, .14); }
html.pp-light .auth-lang-list li { color: #1D1C1E; }
html.pp-light .auth-lang-list li:hover { background: #EFEDF7; }
html.pp-light .auth-lang-list li[aria-selected="true"] { color: #1D1C1E; background: #F1EBFF; }
html.pp-light .auth-lang-rail { background: #ECEAF3; }
html.pp-light .auth-lang-rail i { background: #B9B4CC; }
html.pp-light .pp-theme__track { background: #D9D6E6; }
html.pp-light .pp-theme[aria-checked="true"] .pp-theme__track { background: var(--pg-violet); }
html.pp-light .auth-error { background: rgba(229, 72, 77, .08); color: #8d1f24; }
html.pp-light .auth-hint { color: #c2281a; }
html.pp-light .auth-brand-inner h2, html.pp-light .auth-point strong { color: #1D1C1E; }
html.pp-light .auth-brand-inner > p, html.pp-light .auth-point span { color: #6B6880; }
html.pp-light .auth-brand-badge { color: #1D1C1E; background: rgba(140, 82, 255, .1); }
html.pp-light .pg-wallet { background: rgba(255, 255, 255, .7); box-shadow: 0 20px 50px rgba(29, 28, 30, .1), 0 0 0 1px #E4E2EE inset; }
html.pp-light .pg-wallet__head b { color: #1D1C1E; }
html.pp-light .pg-coin { background: #F6F5FA; box-shadow: 0 0 0 1px #ECEAF3 inset; }
html.pp-light .auth-point .auth-point-ic { color: var(--pg-violet-2); background: rgba(140, 82, 255, .1); }

@media (prefers-reduced-motion: reduce) { .pp-theme__track, .pp-theme__knob { transition: none; } }

/* short desktop screens (1366x768, 1280x720): the glass card's own padding must not push register past one screen */
@media (min-width: 901px) and (max-height: 860px) {
  .auth-card { padding: 18px 28px 14px; }
  .auth-card--register .auth-sub { margin-bottom: 10px; }
  .auth-card--register .auth-legal-note { margin-top: 8px; }
  .auth-alt { margin-top: 14px; }
  .auth-alt--corp { margin-top: 4px; }
  .pg-wallet { margin-bottom: 18px; padding: 14px; }
}

/* success message after "send reset link" — themed (was an inline style unreadable on the dark card) */
.auth-done { margin: 4px 0 24px; padding: 14px 16px; border-radius: 12px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); color: #86EFAC; font-size: 14px; line-height: 1.55; font-weight: 600; }
.auth-done[hidden] { display: none; }
html.pp-light .auth-done { background: rgba(34, 160, 107, .1); border-color: rgba(34, 160, 107, .3); color: #166534; }

/* agreement checkbox: a bigger tap target on phones */
@media (pointer: coarse) { .auth-check.terms { padding-left: 34px; } .auth-check.terms input { width: 22px; height: 22px; top: 1px; } .auth-check input { width: 22px; height: 22px; } }

/* company sign-up field */
.auth-field--corp[hidden] { display: none; }

/* desktop only (Igor 02.11: phones were fine — the extra air was a desktop problem): no 0.8 zoom on tall screens */
@media (min-width: 901px) and (min-height: 961px) {
  .auth-wrap:has(.auth-card--register) .auth-form-side, .auth-wrap:has(.auth-card--register) .auth-brand-side { zoom: .88; min-height: calc(100vh / .88); }
}
@media (min-width: 901px) and (min-height: 861px) {
  .auth-wrap:not(:has(.auth-card--register)) .auth-form-side, .auth-wrap:not(:has(.auth-card--register)) .auth-brand-side { zoom: 1; min-height: 100vh; }
  .auth-card { max-width: 480px; padding: 40px 40px 32px; }
  .auth-brand-inner { max-width: 520px; }
  .auth-brand-inner h2 { font-size: clamp(40px, 3.4vw, 54px); }
  .pg-wallet__head b { font-size: 30px; }
}
/* desktop, short screens: company sign-up has one more field */
@media (min-width: 901px) and (max-height: 960px) {
  body.is-corporate .auth-field, body.is-corporate .auth-card--register .auth-field { margin-bottom: 6px; }
  body.is-corporate .auth-card--register .auth-sub { display: none; }
  body.is-corporate .auth-card--register h1 { margin-bottom: 10px; }
}
html.pp-light .pg-coin { background: #F6F5FA; }

/* checkboxes drawn by us: Safari/iOS ignores accent-color on a dark page and shows a white native box */
.auth-check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto; margin: 0; cursor: pointer;
  border: 1.5px solid #4C4566; border-radius: 6px; background: #2A2734 center / 72% no-repeat;
  transition: background-color .15s ease, border-color .15s ease;
}
.auth-check input[type="checkbox"]:checked {
  background-color: var(--pg-violet); border-color: var(--pg-violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.auth-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--pg-violet-soft); outline-offset: 2px; }
html.pp-light .auth-check input[type="checkbox"] { background-color: #fff; border-color: #C2BDD6; }
html.pp-light .auth-check input[type="checkbox"]:checked { background-color: var(--pg-violet); border-color: var(--pg-violet); }

/* ---- 2FA cells and the "Lost access?" box (dark default, light below) ---- */
.auth-otp-cells i { background: var(--pg-field); border-color: var(--pg-field-line); color: #fff; font-family: "Montserrat", sans-serif; }
.auth-otp-cells i.is-filled { border-color: #5A5276; }
.auth-otp-cells i.is-caret { border-color: var(--pg-violet); box-shadow: 0 0 0 4px rgba(140, 82, 255, .22); background: #2E2A3A; }
.auth-otp-cells i.is-caret::after { background: var(--pg-violet-soft); }
.auth-otp.is-error .auth-otp-cells i { border-color: #E5484D; }
.auth-help { background: rgba(255, 255, 255, .03); border-color: var(--pg-line); color: var(--pg-muted); }
.auth-help-title, .auth-help-sub, .auth-help-mail { color: var(--pg-text); }
.auth-help-toggle svg { stroke: var(--pg-muted); }
.auth-help-toggle:hover svg { stroke: #fff; }
.auth-help-toggle:focus-visible { outline-color: var(--pg-violet); }
.auth-help-mail a { color: var(--pg-violet-soft); }
.auth-help-mail { font-weight: 600; }
.auth-help-mail + .auth-help-mail { margin-top: 2px !important; }
html.pp-light .auth-otp-cells i { background: #FAF9FD; border-color: #D9D6E6; color: #1D1C1E; }
html.pp-light .auth-otp-cells i.is-filled { border-color: #C2BDD6; }
html.pp-light .auth-otp-cells i.is-caret { background: #fff; border-color: var(--pg-violet); box-shadow: 0 0 0 4px rgba(140, 82, 255, .15); }
html.pp-light .auth-otp-cells i.is-caret::after { background: var(--pg-violet); }
html.pp-light .auth-help { background: #FAF9FD; border-color: #E4E2EE; color: #6B6880; }
html.pp-light .auth-help-title, html.pp-light .auth-help-sub, html.pp-light .auth-help-mail { color: #1D1C1E; }
html.pp-light .auth-help-toggle:hover svg { stroke: #1D1C1E; }
html.pp-light .auth-help-mail a { color: var(--pg-violet-2); }
/* ---------- texts of the approved mock (05.11) ---------- */
/* "Your currencies": four currencies without amounts */
.pg-coin--plain { grid-template-columns: auto 1fr; grid-template-rows: auto; }
.pg-coin--plain .pg-coin__ic { grid-row: auto; }
.pg-coin--plain b { font-size: 15px; }
.pg-coin__ic--gbp { background: #8C52FF; }
.pg-coin__ic--cad { background: #F59E0B; font-size: 12.5px; letter-spacing: -.02em; }
/* login heading: full on wide screens, "Log in" on phones */
.pg-h-short { display: none; }
@media (max-width: 600px) { .pg-h-full { display: none; } .pg-h-short { display: inline; } }
/* "Terms of Service | Privacy Policy" */
.pg-legal-links { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pg-legal-links .pg-sep { color: var(--pg-muted); opacity: .6; }
/* 2FA: "Contact support" under the lost-access box */
.pg-tfa-contact { margin: 14px 0 0; text-align: center; font-size: 14px; font-weight: 600; }
.pg-tfa-contact a { color: var(--pg-violet-soft); font-weight: 700; text-decoration: none; }
.pg-tfa-contact a:hover { text-decoration: underline; }
html.pp-light .pg-tfa-contact a { color: var(--pg-violet-2); }
/* "Lost access to your authenticator?" stays on one line on phones in every language (same rule as PayerPay) */
@media (max-width: 420px) { .auth-help-toggle { padding: 14px; gap: 8px; } .auth-help-toggle .auth-help-title { font-size: clamp(12.5px, 3.6vw, 14.5px); white-space: nowrap; } }
@media (max-width: 340px) { .auth-help-toggle .auth-help-title { white-space: normal; } }
/* desktop: the brand panel and the card sit together in one centred block, not at the two far edges of a wide screen
   (Igor 05.11: "very much free space") */
@media (min-width: 901px) {
  .auth-wrap { grid-template-columns: auto auto; width: fit-content; max-width: 100%; margin: 0 auto; column-gap: clamp(48px, 8vw, 140px); }
  .auth-wrap { overflow-x: visible; overflow-y: clip; }  /* glows: not cut at the sides of the narrower block (seams), no extra page height */
  html, body.auth-body { overflow-x: clip; }             /* …and still never add a horizontal scroll */
  .auth-brand-side { padding-left: 0; padding-right: 0; align-items: stretch; }
  .auth-brand-inner { margin: 0; }
  .auth-form-side { padding-left: 0; padding-right: 0; }
  .auth-topbar .logo { left: 0; }
}
/* desktop: always some air between the top bar and the card (register is the tallest card and touched the bar) */
@media (min-width: 901px) { .auth-topbar { margin-bottom: 32px; } }
/* review 05.11 */
html.pg-fitting .auth-wrap { visibility: hidden; }                               /* until auth-fit.js has scaled the page */
@media (max-width: 380px) { .auth-help-toggle { padding: 12px 10px; gap: 6px; } .auth-help-toggle .auth-help-title { font-size: clamp(12px, 3.35vw, 14px); } }
html.pp-light .pg-wallet__head span { color: #5F5A75; }                         /* "Your currencies" on white: 4.5:1+ */
html:not(.pp-light) .auth-brand-inner h2 em { background: linear-gradient(90deg, #B08CFF, #8FA3FF); -webkit-background-clip: text; background-clip: text; }   /* lighter gradient on dark: 3:1+ */

