:root { --auth-ink: #13233a; --auth-muted: #58697d; --auth-blue: #0878e8; --auth-cyan: #0878e8; --auth-purple: #7b2bbf; --auth-surface: #fff; font-family: "Trebuchet MS", "Segoe UI", sans-serif; color: var(--auth-ink); background: #edf4ff; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 32px; background: linear-gradient(135deg, #edf4ff, #f7f1ff); }
.auth-layout { position: relative; width: min(650px, 100%); min-height: 340px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.14); box-shadow: 0 14px 30px rgba(19,35,58,.18); }
.auth-welcome { position: relative; display: grid; align-content: center; gap: 10px; padding: clamp(18px, 3.5vw, 30px); color: #fff; background: linear-gradient(145deg, rgba(8,120,232,.96), rgba(123,43,191,.92)); }
.auth-top-controls { position: absolute; top: 12px; right: 12px; z-index: 10; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.auth-home-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 7px 16px; border-radius: 999px; color: #000; background: #ffd700; border: 1px solid #ffed4e; font-size: .72rem; font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.auth-home-link:hover, .auth-home-link:focus-visible { color: #000; background: #ffeb3b; filter: brightness(.95); }
.auth-mark { width: 66px; height: 66px; display: grid; place-items: center; border: 0; border-radius: 0; font-size: 21px; font-weight: 800; overflow: visible; background: transparent; box-shadow: none; }
.auth-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.auth-welcome h1 { max-width: 290px; margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.7rem); line-height: .98; letter-spacing: 0; }
.welcome-title-secondary { display: inline-block; font-size: .82em; }
.auth-welcome p { max-width: 410px; margin: 0; color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.6; }
.auth-kicker { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.auth-card { position: relative; display: grid; align-content: center; padding: clamp(16px, 3vw, 26px); border-radius: 0 16px 16px 0; background: var(--auth-surface); }
.auth-card h2 { margin: 0 0 5px; }
#intro, .auth-card h2 { color: #4c5e75; font: 700 17px Georgia, serif; line-height: 1.2; text-align: center; text-transform: uppercase; }
.auth-subtitle { margin: 0 0 16px; color: #4c5e75; font-weight: 800; text-align: center; }
.auth-form { display: grid; gap: 10px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.auth-tabs.otp-disabled { grid-template-columns: 1fr; }
.auth-tab { min-height: 38px; border: 1px solid #b4bfd0; border-radius: 8px; background: #fff; color: var(--auth-muted); font: inherit; font-weight: 800; cursor: pointer; }
.auth-tab.active { color: #fff; border-color: var(--auth-blue); background: var(--auth-blue); }
.auth-tab-panel { display: none; }
.auth-tab-panel.active { display: grid; }
.otp-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(19,35,58,.58); }
.otp-modal[hidden] { display: none; }
.otp-modal-card { width: min(100%, 390px); padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.otp-modal-card [hidden], #recaptcha-container[hidden] { display: none !important; }
.otp-modal-card h2 { margin: 0 0 10px; }
.auth-toast { position: fixed; right: 16px; bottom: 16px; z-index: 30; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 8px; color: #fff; background: #14724b; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s, transform .18s; }
.auth-toast.show { opacity: 1; transform: translateY(0); }
.auth-toast.error { background: #a12c35; }
.auth-form label { display: grid; gap: 7px; color: var(--auth-muted); font-size: .86rem; }
.auth-form label:has(input[required]) > span::after { content: ' *'; color: #c0394b; }
.auth-panel > label:has(input[required]) > span::after { content: ' *'; color: #c0394b; }
.auth-form input { width: 100%; min-height: 44px; padding: 11px 10px; border: 1px solid #b4bfd0; border-radius: 8px; color: var(--auth-ink); background: #fff; font: inherit; }
.iti { width: 100%; }
.auth-form .iti input { padding-left: 96px !important; padding-right: 10px; }
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle { position: absolute; right: 10px; top: 50%; width: 32px; height: 32px; transform: translateY(-50%); border: 0; background: transparent; color: #667085; font-size: 1rem; line-height: 1; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--auth-blue); }
.auth-form input:focus { outline: 3px solid rgba(18,195,216,.24); border-color: var(--auth-blue); }
.auth-submit { width: 100%; min-height: 44px; padding: 11px 9px; border: 0; border-radius: 8px; background: linear-gradient(90deg, var(--auth-blue), var(--auth-purple)); color: #fff; font-weight: 800; cursor: pointer; }
.auth-submit:hover { filter: brightness(.96); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; font-size: .8rem; }
.auth-link { margin-top: 8px; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; color: var(--auth-purple); background: transparent; font: inherit; cursor: pointer; text-align: center; text-decoration: underline; }
.auth-register-link { display: block; margin-top: 14px; color: var(--auth-blue); font-size: .86rem; font-weight: 700; text-align: center; text-decoration: none; }
.auth-register-link:hover { color: var(--auth-purple); text-decoration: underline; }
.auth-error { min-height: 1.4em; color: #a12c35; font-size: .85rem; }
.auth-success { min-height: 1.4em; color: #14724b; font-size: .85rem; }
.auth-panel { display: none; }
.auth-panel.active { display: grid; gap: 16px; }
.auth-welcome > .language-switch { position: static; display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(24,38,56,.18); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(24,38,56,.12); flex-shrink: 0; }
.language-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(24,38,56,.18); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(24,38,56,.12); flex-shrink: 0; }
.language-switch input { position: absolute; opacity: 0; pointer-events: none; }
.language-switch label { min-width: 32px; padding: 5px 7px; border-radius: 999px; color: var(--auth-muted); font-size: .68rem; font-weight: 800; text-align: center; cursor: pointer; }
.language-switch input:checked + label { color: #fff; background: linear-gradient(90deg, var(--auth-blue), var(--auth-purple)); }
.auth-success { min-height: 1.4em; color: #14724b; font-size: .85rem; }
.auth-panel { display: none; }
.auth-panel.active { display: grid; gap: 16px; }
.auth-footer { position: absolute; right: clamp(16px, 3vw, 26px); bottom: 18px; left: clamp(16px, 3vw, 26px); color: #7d8898; font-size: .64rem; text-align: center; }
#recaptcha-container { margin: 12px 0; display: flex; justify-content: center; }
#otpPanel > p { margin: 0 0 14px; color: var(--auth-muted); font-size: .95rem; text-align: center; line-height: 1.5; }
.otp-digit-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-digit { min-width: 0; min-height: 52px !important; padding: 8px 4px !important; font-size: 1.35rem !important; font-weight: 800; text-align: center; }
@media (min-width: 761px) { .auth-layout { width: min(860px, 100%); min-height: 500px; } .auth-welcome { padding: 42px; } .auth-card { padding: 42px; } }
@media (max-width: 850px) { .auth-footer { position: static; margin-top: 28px; } }
@media (max-width: 760px) { body { padding: 12px; } .auth-layout { grid-template-columns: 1fr; min-height: auto; } .auth-welcome { min-height: 140px; padding: 18px; } .auth-mark { width: 56px; height: 56px; } .auth-welcome h1 { font-size: clamp(1.7rem, 8vw, 2.5rem); } .auth-card { padding: 18px; } .language-switch { top: 8px; right: 8px; } }