:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0f172a;
    background: #f3f6fb;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.login-shell { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; min-height: 100svh; }
.welcome-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(32px, 5vw, 88px) 32px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 100% 100%, #2563eb66, transparent 65%), linear-gradient(135deg, #0f172a, #142d66);
}
.welcome-panel::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    top: -330px;
    right: -220px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    box-shadow: 0 0 0 70px #ffffff03, 0 0 0 140px #ffffff03;
    pointer-events: none;
}
.welcome-content { position: relative; width: 100%; max-width: 520px; margin: auto; }
.product-label { display: flex; align-items: center; gap: 12px; margin-bottom: 58px; font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.chat-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff26; border-radius: 14px; background: #ffffff0c; }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.welcome-panel .eyebrow { color: #a9caff; }
h1 { margin: 0; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.13; font-weight: 650; letter-spacing: -1.8px; }
h1 span { color: #93c5fd; }
.welcome-description { max-width: 390px; margin: 22px 0 32px; color: #c0cde3; font-size: 15px; line-height: 1.75; }
.chat-preview { padding: 20px; border: 1px solid #ffffff26; border-radius: 20px; background: #ffffff09; box-shadow: 0 24px 60px #02061726; }
.preview-header { display: flex; align-items: center; gap: 10px; }
.assistant-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #bfdbfe; background: #60a5fa26; flex-shrink: 0; }
.assistant-avatar svg { width: 20px; height: 20px; }
.preview-header strong { display: block; font-size: 12px; font-weight: 600; }
.preview-header div > span { display: block; margin-top: 4px; color: #c0cde3; font-size: 10px; line-height: 1.5; }
.example-label { margin-left: auto; padding: 4px 8px; border: 1px solid #ffffff26; border-radius: 20px; color: #c0cde3; font-size: 10px; }
.preview-messages { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; font-size: 12px; line-height: 1.65; }
.preview-user { align-self: flex-end; max-width: 88%; padding: 12px 15px; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, #1d4ed8, #2563eb); box-shadow: 0 4px 14px #0206171a; }
.preview-assistant { align-self: flex-start; max-width: 88%; padding: 12px 15px; border-radius: 14px 14px 14px 4px; color: #1f2937; background: #f8fbff; }
.preview-composer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 13px; border: 1px solid #ffffff1f; border-radius: 12px; color: #c0cde3; font-size: 11px; }
.preview-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #dbeafe; background: #ffffff14; }
.preview-send svg { width: 16px; height: 16px; }
.welcome-footer { position: relative; margin: 40px 0 0; color: #a8bada; font-size: 11px; text-align: center; }
.form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 40px 32px; background: #fbfcff; }
.login-content { width: 100%; max-width: 380px; margin: auto 0; }
.cash-logo { display: block; max-width: 100%; height: auto; margin-bottom: 54px; }
.login-heading .eyebrow { color: #1d4ed8; }
h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; }
.login-heading > p:last-child { margin: 0 0 32px; color: #64748b; font-size: 14px; line-height: 1.7; }
.login-form { display: grid; gap: 22px; }
.field-group label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.field-group input { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid #cfd9e8; border-radius: 11px; outline: none; background: #fff; color: #0f172a; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field-group input::placeholder { color: #64748b; }
.field-group input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px #60a5fa2e; }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-toggle { position: absolute; top: 5px; right: 6px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #64748b; }
.password-toggle[hidden] { display: none; }
.password-toggle:hover { background: #eff6ff; color: #1d4ed8; }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; margin-top: 6px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px #2563eb26; transition: box-shadow .15s, background .15s; }
.login-submit:hover { background: #1d4ed8; box-shadow: 0 8px 20px #2563eb38; }
.login-submit svg { width: 18px; height: 18px; }
.access-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; color: #64748b; font-size: 11px; }
.access-note svg { width: 14px; height: 14px; }
.login-notice { margin-bottom: 22px; padding: 13px 16px; border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; color: #1e40af; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.login-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.form-footer { margin: 40px 0 0; color: #64748b; font-size: 11px; }
@media (min-width: 1600px) {
    .welcome-content { max-width: 560px; }
}
@media (max-width: 1000px) {
    .welcome-panel, .form-panel { padding-right: 32px; padding-left: 32px; }
    .preview-header div > span { max-width: 170px; }
}
@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; }
    .welcome-panel { padding: 28px 24px 32px; }
    .welcome-content { max-width: 380px; }
    .product-label { margin-bottom: 28px; font-size: 16px; }
    .welcome-panel .eyebrow { display: none; }
    h1 { font-size: 32px; letter-spacing: -1px; }
    h1 br { display: none; }
    .welcome-description { margin: 16px 0 0; font-size: 13px; }
    .chat-preview, .welcome-footer { display: none; }
    .form-panel { padding: 32px 24px 24px; }
    .cash-logo { width: 220px; margin-bottom: 32px; }
    h2 { font-size: 30px; }
    .form-footer { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
