:root {
    --auth-primary: #1a3f6b;
    --auth-primary-hover: #122d4d;
    --auth-blue: #2563eb;
    --auth-text: #172b43;
    --auth-muted: #65758a;
    --auth-border: #d9e1ec;
}
* { box-sizing: border-box; }
.auth-body { margin: 0; min-height: 100vh; color: var(--auth-text); background: #eff3f8; font-family: "Segoe UI", "Nirmala UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
button, input { font: inherit; }
a { color: #1c56aa; text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7baeff; outline-offset: 3px; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.auth-page { max-width: 1200px; margin: auto; padding: 26px 32px 20px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #16375d; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 46px; border-radius: 13px; background: #173b66; color: white; box-shadow: 0 4px 10px #193f6b1a; }
.brand-mark .icon { width: 28px; height: 28px; }
.brand strong { display: block; font-size: 23px; line-height: 1.15; letter-spacing: 1.7px; font-weight: 800; }
.brand > span > span { display: block; font-size: 9px; letter-spacing: 2.4px; font-weight: 700; margin-top: 3px; }
.home-link { display: flex; align-items: center; gap: 8px; color: #435b78; font-size: 13px; font-weight: 600; }
.home-link .icon { width: 17px; height: 17px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 650px; border: 1px solid #d8e2ed; border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 18px 55px #102a4410; }
.auth-intro { position: relative; display: flex; flex-direction: column; padding: 50px 43px 32px; overflow: hidden; background: radial-gradient(ellipse at 100% 100%, #2c5c8c 0, transparent 62%), linear-gradient(135deg, #112e50, #193f6b); color: white; }
.auth-intro::before { content: ""; position: absolute; width: 410px; height: 410px; right: -210px; top: -175px; border: 1px solid #ffffff0e; border-radius: 50%; box-shadow: 0 0 0 55px #ffffff03, 0 0 0 110px #ffffff03; pointer-events: none; }
.intro-label { display: flex; gap: 8px; align-items: center; color: #bfd4eb; font-size: 10px; letter-spacing: 1.7px; font-weight: 700; }
.intro-label > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #85b9f5; }
.auth-intro h2 { position: relative; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.6; margin: 28px 0 12px; letter-spacing: -.5px; font-weight: 650; }
.auth-intro h2 em { color: #9dcaff; font-style: normal; }
.intro-copy { margin: 0; max-width: 330px; color: #cedef0; line-height: 1.9; font-size: 15px; }
.portal-preview { position: relative; margin-top: 36px; border: 1px solid #ffffff24; border-radius: 12px; background: #ffffff0b; box-shadow: 0 12px 35px #0a1f351f; padding: 19px; }
.preview-heading { display: flex; align-items: center; font-size: 9px; letter-spacing: 1.5px; font-weight: 700; color: #c0d4ec; gap: 7px; }
.preview-dot { width: 5px; height: 5px; background: #9dcaff; border-radius: 50%; }
.preview-status { margin-left: auto; border: 1px solid #92ddc734; color: #b9eddb; font-size: 9px; background: #72d5b90b; border-radius: 4px; padding: 2px 5px; letter-spacing: .2px; }
.preview-product { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.preview-product > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #7eb6fc1c; color: #b0d4ff; }
.preview-product strong { font-size: 13px; font-weight: 600; }
.preview-product p { font-size: 10px; margin: 3px 0 0; color: #aac4e1; }
.preview-lines { display: flex; gap: 5px; margin-top: 18px; }
.preview-lines span { height: 4px; border-radius: 3px; width: 46%; background: #88b7ed2b; }
.preview-lines span:nth-child(2) { width: 29%; background: #88b7ed15; }
.preview-lines span:last-child { width: 20%; background: #88b7ed10; }
.preview-stats { display: flex; gap: 7px; margin-top: 19px; }
.preview-stats > div { flex: 1; display: flex; align-items: center; gap: 7px; padding-top: 14px; border-top: 1px solid #ffffff12; color: #c2d8ef; font-size: 10px; }
.preview-stats .icon { width: 15px; height: 15px; color: #97bff0; }
.intro-note { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 30px; color: #93afcf; font-size: 11px; }
.intro-note span { color: #5c81a8; }
.auth-panel { align-self: center; padding: 40px 54px; min-width: 0; }
.panel-heading { margin-bottom: 25px; }
.panel-icon { display: grid; place-items: center; width: 47px; height: 47px; color: #215087; border: 1px solid #dce7f4; background: #f0f5fc; border-radius: 12px; margin-bottom: 17px; }
.panel-icon .icon { width: 23px; height: 23px; }
.eyebrow { display: block; color: #74859a; font-size: 9px; letter-spacing: 1.7px; font-weight: 700; margin-bottom: 7px; }
.panel-heading h1 { margin: 0; font-size: 27px; font-weight: 750; letter-spacing: -.6px; line-height: 1.45; color: #183656; }
.panel-heading > p { color: var(--auth-muted); margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.auth-form { display: grid; gap: 17px; }
.field { min-width: 0; }
.field label { display: flex; align-items: center; gap: 5px; color: #263e5c; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.optional { font-size: 11px; font-weight: 400; color: #8290a0; }
.field input { width: 100%; min-width: 0; height: 46px; background: #fff; border: 1px solid var(--auth-border); border-radius: 8px; color: #172f4a; padding: 10px 13px; transition: border .15s, box-shadow .15s; }
.field input::placeholder { color: #8b99a9; font-size: 13px; }
.field input:focus { outline: 0; border-color: #4c87d0; box-shadow: 0 0 0 3px #2563eb10; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: #718197; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 7px; top: 7px; height: 32px; min-width: 42px; padding: 3px 7px; color: #677d96; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 11px; }
.password-toggle:hover { background: #f0f5fb; }
.password-toggle .icon { width: 19px; height: 19px; }
.form-assist { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -5px; font-size: 12px; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; gap: 9px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 650; font-size: 14px; text-align: center; line-height: 1.5; text-decoration: none; }
.button:hover { text-decoration: none; }
.button-primary { background: var(--auth-primary); color: white; box-shadow: 0 3px 8px #173b6617; }
.button-primary:hover { background: var(--auth-primary-hover); }
.button .icon { width: 17px; height: 17px; }
.button:disabled { cursor: wait; opacity: .7; }
.button-secondary { border-color: #d8e2ed; color: #2d4d72; background: #f9fbfe; }
.button-secondary:hover { background: #f0f5fb; }
.button-google { border-color: #d8e2ed; color: #2f4560; background: white; font-size: 13px; }
.button-google:hover { background: #f8fafc; border-color: #b6c8dc; }
.button-google > svg { width: 19px; height: 19px; }
.auth-divider { display: flex; align-items: center; gap: 13px; color: #8b98a8; font-size: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e8edf3; }
.auth-links { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #edf0f5; font-size: 13px; color: #718197; }
.auth-links a { font-weight: 600; }
.notice { display: flex; gap: 10px; margin: 0 0 20px; padding: 13px 14px; border: 1px solid; border-radius: 8px; line-height: 1.75; font-size: 13px; }
.notice > .icon { width: 18px; height: 18px; margin-top: 3px; }
.notice strong { display: block; font-weight: 700; margin-bottom: 2px; }
.notice p { margin: 0; }
.notice-error { background: #fff6f4; border-color: #f6d1c9; color: #a6382d; }
.notice-success { background: #effaf6; border-color: #bde7d3; color: #1d6b4c; }
.notice-info { background: #f0f6ff; border-color: #cfdef5; color: #2c558b; }
.email-recipient { display: block; font-weight: 650; font-size: 15px; color: #244b74; padding: 12px 14px; background: #f4f7fb; border: 1px solid #e4eaf3; border-radius: 8px; overflow-wrap: anywhere; margin: 0 0 18px; }
.next-steps { padding: 0 0 0 21px; margin: 18px 0 22px; color: #65758a; font-size: 13px; line-height: 1.8; }
.next-steps li + li { margin-top: 7px; }
.action-stack { display: grid; gap: 10px; }
.inline-form { margin: 0; }
.text-button { padding: 0; border: 0; background: none; color: #1c56aa; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; }
.text-button:hover { text-decoration: underline; }
.inline-note { color: #718197; font-size: 12px; line-height: 1.8; margin: 16px 0 0; }
.otp-input { text-align: center; letter-spacing: 11px; font-size: 24px; font-weight: 650; height: 57px !important; padding-left: 24px !important; }
.otp-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; }
.auth-footer { display: flex; justify-content: space-between; gap: 15px; color: #8591a1; font-size: 11px; padding-top: 20px; }
.auth-footer span { color: #758598; }
@media (min-width: 1600px) { .auth-page { padding-top: 7vh; } }
@media (max-width: 950px) { .auth-page { padding: 22px; } .auth-intro { padding: 40px 30px 28px; } .auth-panel { padding: 35px; } .preview-product p { font-size: 9px; } }
@media (max-width: 730px) { .auth-page { max-width: 580px; padding: 20px; } .auth-shell { display: block; min-height: 0; border-radius: 15px; } .auth-intro { display: none; } .auth-panel { padding: 32px; } .auth-topbar { margin-bottom: 23px; } .home-link { font-size: 12px; } .auth-footer { font-size: 10px; } .auth-footer span { display: none; } .panel-heading h1 { font-size: 25px; } }
@media (max-width: 390px) { .auth-page { padding: 15px; } .auth-panel { padding: 27px 22px; } .field-row { grid-template-columns: 1fr; gap: 17px; } .home-link .icon { display: none; } .brand-mark { width: 37px; height: 40px; } .brand strong { font-size: 20px; } .brand > span > span { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
