.login-page {
    align-items: center;
    background: #edf4fb;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px;
    position: relative;
}
.login-page::before, .login-page::after { content: ""; pointer-events: none; position: fixed; }
.login-page::before { background: radial-gradient(circle, rgba(37, 99, 235, .13) 0, rgba(37, 99, 235, 0) 68%); height: 620px; left: -250px; top: -260px; width: 620px; }
.login-page::after { background: radial-gradient(circle, rgba(14, 165, 233, .12) 0, rgba(14, 165, 233, 0) 66%); bottom: -260px; height: 580px; right: -180px; width: 580px; }
.login-frame { background: #fff; border: 1px solid #d6e2f0; border-radius: 24px; box-shadow: 0 24px 70px rgba(30, 64, 175, .13); display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); max-width: 1050px; min-height: 640px; overflow: hidden; position: relative; width: 100%; z-index: 1; }
.login-story { background: #10294b; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 34px 38px 28px; position: relative; }
.login-story::before { background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 38px 38px; content: ""; inset: 0; mask-image: linear-gradient(135deg, rgba(0,0,0,.9), transparent 78%); opacity: .8; pointer-events: none; position: absolute; }
.login-story::after { border: 1px solid rgba(125, 211, 252, .16); border-radius: 50%; content: ""; height: 370px; position: absolute; right: -190px; top: 120px; width: 370px; }
.login-story > * { position: relative; z-index: 1; }
.login-story-top { align-items: flex-start; display: flex; justify-content: space-between; gap: 18px; }
.login-brand { align-items: center; color: #fff; display: inline-flex; gap: 10px; text-decoration: none; }
.login-brand:hover { color: #dbeafe; }
.login-brand-mark { align-items: center; background: #2f74f6; border-radius: 11px; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); display: inline-flex; font-size: 20px; height: 40px; justify-content: center; width: 40px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 13px; letter-spacing: .07em; line-height: 1.15; }
.login-brand small { color: #a9c0de; font-size: 11px; margin-top: 2px; }
.login-secure-tag { align-items: center; border: 1px solid rgba(186, 230, 253, .2); border-radius: 999px; color: #b7d7ef; display: inline-flex; font-size: 9px; gap: 6px; letter-spacing: .08em; padding: 6px 9px; white-space: nowrap; }
.login-story-copy { margin: auto 0 44px; max-width: 370px; padding-top: 80px; }
.login-kicker { color: #2f74f6; font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.2; margin: 0 0 10px; }
.login-story .login-kicker { color: #8ec5ff; }
.login-story-copy h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; margin: 0 0 18px; }
.login-story-copy > p:last-child { color: #b9cce4; font-size: 14px; line-height: 1.7; margin: 0; max-width: 320px; }
.login-ledger { background: rgba(255,255,255,.075); border: 1px solid rgba(186, 230, 253, .18); border-radius: 14px; padding: 16px 17px; width: min(100%, 360px); }
.ledger-heading, .ledger-row { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.ledger-heading { border-bottom: 1px solid rgba(255,255,255,.12); color: #9fc1e6; font-size: 9px; letter-spacing: .12em; padding-bottom: 11px; }
.ledger-heading i { color: #8ec5ff; font-size: 16px; }
.ledger-row { color: #abc1dc; font-size: 11px; padding-top: 11px; }
.ledger-row strong { color: #fff; font-size: 12px; font-weight: 600; }
.ledger-row b { align-items: center; color: #91e1be; display: inline-flex; font-size: 11px; font-weight: 500; gap: 5px; }
.ledger-row b i { background: #55d69a; border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.login-story-foot { color: #7895b8; display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .04em; margin-top: 26px; }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 52px clamp(34px, 6vw, 74px) 26px; }
.login-panel-inner { margin: auto 0; max-width: 390px; width: 100%; }
.login-panel-heading { margin-bottom: 30px; }
.login-panel-heading h2 { color: #15233b; font-size: 30px; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 8px; }
.login-panel-heading > p:last-child { color: #6b7c94; font-size: 13px; margin: 0; }
.login-form { display: grid; gap: 20px; }
.login-field label { color: #2d3e59; display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.login-input-wrap { align-items: center; background: #fbfdff; border: 1px solid #d5e1ef; border-radius: 10px; display: flex; min-height: 48px; padding: 0 13px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.login-input-wrap:focus-within { background: #fff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.login-input-wrap > i { color: #8ba1bc; flex: 0 0 auto; font-size: 16px; margin-right: 10px; }
.login-input-wrap input { background: transparent; border: 0; color: #15233b; font-size: 14px; min-width: 0; outline: 0; padding: 12px 0; width: 100%; }
.login-input-wrap input::placeholder { color: #a7b5c8; }
.login-password-toggle { background: transparent; border: 0; color: #8ba1bc; display: inline-flex; font-size: 17px; padding: 5px; }
.login-password-toggle:hover { color: #2563eb; }
.login-submit { align-items: center; display: inline-flex; font-size: 14px; justify-content: space-between; margin-top: 4px; min-height: 48px; padding: 10px 16px 10px 18px; width: 100%; }
.login-submit i { font-size: 17px; transition: transform .2s ease; }
.login-submit:hover i { transform: translateX(3px); }
.login-alert { align-items: flex-start; border-radius: 10px; display: flex; font-size: 12px; gap: 8px; line-height: 1.5; margin: -8px 0 20px; padding: 11px 12px; }
.login-alert-success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }
.login-alert-error { background: #fff5f5; border: 1px solid #fecaca; color: #b42318; }
.login-alert i { font-size: 15px; margin-top: 1px; }
.login-help { align-items: flex-start; color: #7b8aa0; display: flex; font-size: 11px; gap: 7px; line-height: 1.5; margin: 24px 0 0; }
.login-help i { color: #6c9ce8; font-size: 13px; margin-top: 1px; }
.login-panel-footer { border-top: 1px solid #edf1f6; color: #97a6b9; display: flex; font-size: 10px; justify-content: space-between; margin-top: 44px; padding-top: 15px; }
.login-panel-footer span { align-items: center; display: inline-flex; gap: 5px; }
.login-panel-footer i { color: #79a5df; }
.login-submit:disabled { cursor: wait; opacity: .75; }

@media (max-width: 820px) {
    .login-page { padding: 16px; }
    .login-frame { grid-template-columns: 1fr; max-width: 560px; min-height: auto; }
    .login-story { min-height: 330px; padding: 26px 28px 22px; }
    .login-story-copy { margin: 58px 0 28px; padding-top: 0; }
    .login-story-copy h1 { font-size: 32px; }
    .login-ledger { display: none; }
    .login-panel { padding: 38px 28px 22px; }
    .login-panel-inner { margin: 0; max-width: none; }
    .login-panel-footer { margin-top: 34px; }
}

@media (max-width: 420px) {
    .login-story-top { display: block; }
    .login-secure-tag { margin-top: 20px; }
    .login-story-copy { margin-top: 38px; }
    .login-story-copy h1 { font-size: 28px; }
    .login-panel { padding-left: 21px; padding-right: 21px; }
    .login-panel-heading h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-input-wrap, .login-submit i { transition: none; }
}
