:root {
    color-scheme: light;
    --cream: #f7f5ef;
    --paper: #fffefa;
    --green: #173d36;
    --navy: #18312f;
    --muted: #6b7771;
    --line: #dedfd5;
    --lime: #dce6b8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: var(--cream); font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #719187; outline-offset: 5px; }
[hidden] { display: none !important; }
.login-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr); }
.login-story { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: 42px clamp(34px, 5vw, 92px); color: #f9f7ee; background: var(--green); }
.login-story::before { content: ""; position: absolute; width: 600px; height: 600px; top: -380px; left: -270px; border: 1px solid #ffffff0c; border-radius: 50%; box-shadow: 0 0 0 90px #ffffff03, 0 0 0 180px #ffffff02; pointer-events: none; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: -.8px; }
.brand-dot { color: #a9be83; }
.brand-symbol { position: relative; display: block; width: 30px; height: 23px; border: 1.5px solid currentColor; border-radius: 5px; transform: rotate(-10deg); }
.brand-symbol::before { content: ""; position: absolute; left: 5px; right: 5px; top: 6px; border-top: 1.5px solid currentColor; }
.brand-symbol::after { content: ""; position: absolute; left: 5px; bottom: 5px; width: 6px; border-top: 2px solid currentColor; }
.brand-logo { display: block; width: auto; max-width: 224px; max-height: 52px; height: auto; padding: 9px 12px; border-radius: 7px; background: #fffefa; object-fit: contain; }
.story-content { position: relative; margin: auto 0; padding: 60px 0 20px; }
.story-eyebrow, .login-eyebrow { display: block; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 2px; }
.story-eyebrow { color: #c9d5b6; }
.story-content h2 { margin: 18px 0 20px; font-size: clamp(36px, 3.6vw, 58px); font-weight: 500; line-height: 1.08; letter-spacing: -2px; }
.story-content > p { margin: 0; color: #bfcec7; font-size: 15px; line-height: 1.7; }
.story-foot { position: relative; display: flex; align-items: center; gap: 10px; padding-top: 30px; color: #b8c9c1; font-size: 11px; }
.story-foot-dot { width: 5px; height: 5px; flex-shrink: 0; background: #bbcf9e; border-radius: 50%; }
.card-scene { position: relative; width: min(100%, 385px); height: 267px; margin: 30px 0 4px -3px; }
.scene-orbit { position: absolute; width: 262px; height: 262px; right: 14px; top: 2px; border: 1px solid #b0c4a81c; border-radius: 50%; box-shadow: 0 0 0 28px #ffffff02, 0 0 0 58px #ffffff02; }
.decor-card { position: absolute; width: 302px; height: 185px; border-radius: 15px; }
.decor-card-back { top: 25px; left: 38px; padding: 26px; transform: rotate(9deg); background: #779181; border: 1px solid #b0c4a833; }
.card-back-line { display: block; width: 90px; height: 5px; background: #d1dfc842; border-radius: 10px; }
.card-back-line-short { width: 54px; margin-top: 8px; }
.decor-card-front { top: 63px; left: 2px; padding: 22px 24px 19px; transform: rotate(-7deg); color: #214037; background: #e6e9cb; border: 1px solid #f3f4de; box-shadow: 0 24px 40px #0a241f3d; }
.card-topline, .card-bottomline { display: flex; align-items: center; justify-content: space-between; }
.card-wordmark { font-size: 13px; font-weight: 650; letter-spacing: -.4px; }
.card-contactless { display: flex; align-items: center; gap: 2px; height: 17px; }
.card-contactless i { display: block; width: 3px; height: 7px; border-right: 1px solid #49624d; border-radius: 50%; }
.card-contactless i:nth-child(2) { height: 11px; }
.card-contactless i:nth-child(3) { height: 15px; }
.card-chip { position: relative; width: 29px; height: 24px; margin: 22px 0 14px; border: 1px solid #afaf7c; border-radius: 5px; background: #c9c996; }
.card-chip::before, .card-chip::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px solid #a9ab78; }
.card-chip::before { top: 7px; }.card-chip::after { bottom: 7px; }
.card-chip span { position: absolute; top: 0; bottom: 0; left: 8px; right: 8px; border-left: 1px solid #a9ab78; border-right: 1px solid #a9ab78; background: #c9c996; }
.card-kind { font-size: 7px; font-weight: 650; letter-spacing: 1.4px; }
.card-bottomline { margin-top: 7px; font-size: 10px; }
.card-monogram { font-size: 21px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.scene-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #dce6b8; }
.scene-spark-one { top: 16px; left: 15px; }.scene-spark-two { right: 20px; bottom: 26px; width: 4px; height: 4px; background: #c6d6b977; }
.login-main { display: flex; flex-direction: column; min-width: 0; padding: 42px clamp(32px, 6vw, 110px) 28px; }
.mobile-brand { display: none; }
.login-content { width: 100%; max-width: 374px; margin: auto; padding: 60px 0; }
.login-eyebrow { margin-bottom: 13px; color: #667960; }
.login-heading h1 { margin: 0 0 13px; font-size: 43px; font-weight: 550; line-height: 1.12; letter-spacing: -1.8px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-form { margin-top: 30px; }
.form-field { margin-bottom: 19px; }
.form-field > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.form-field input { width: 100%; min-width: 0; min-height: 51px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--navy); background: var(--paper); font-size: 16px; line-height: 1.4; transition: border-color .18s, box-shadow .18s; }
.form-field input::placeholder { color: #8a928b; font-size: 13px; opacity: 1; }
.form-field input:hover { border-color: #adb8a9; }
.form-field input:focus { border-color: #63816c; box-shadow: 0 0 0 3px #63816c1f; }
.password-field { position: relative; }
.password-field:has(.password-toggle:not([hidden])) input { padding-right: 86px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; min-height: 44px; min-width: 74px; padding: 0 10px; color: var(--green); background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 650; cursor: pointer; }
.password-toggle:hover { background: #edf0e5; }
.password-toggle:focus-visible { outline: 2px solid #719187; outline-offset: -2px; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 26px; padding: 14px 18px; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s, transform .18s; }
.login-submit:hover { background: #244f44; }
.login-submit:active { transform: translateY(1px); }
.submit-arrow { font-size: 20px; font-weight: 400; line-height: 1; }
.login-submit[aria-disabled="true"] { cursor: progress; opacity: .8; }
.login-submit[aria-disabled="true"] .submit-arrow { width: 15px; height: 15px; overflow: hidden; color: transparent; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-error { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; padding: 13px 14px; color: #8a352b; background: #fbedE7; border: 1px solid #e7c8be; border-radius: 9px; font-size: 12px; }
.login-error:focus { outline: 2px solid #a45b4a; outline-offset: 3px; }
.error-symbol { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }
.login-error strong { display: block; font-size: 12px; font-weight: 650; }
.login-error p { margin: 3px 0 0; line-height: 1.55; }
.login-help { display: flex; align-items: flex-start; gap: 10px; margin-top: 25px; padding-top: 22px; border-top: 1px solid #e2e3d9; color: var(--muted); font-size: 11px; line-height: 1.7; }
.login-help p { margin: 0; }
.help-symbol { display: grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; border: 1px solid #98a28f; border-radius: 50%; color: #687a60; font-family: Georgia, serif; font-size: 10px; font-weight: 700; }
.login-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 374px; margin: 0 auto; color: #818a7d; font-size: 11px; }
.login-footer a { color: #52634f; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-footer a span { display: inline-block; margin-left: 4px; font-size: 13px; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (min-width: 1450px) {
    .login-shell { max-width: 1800px; margin: 0 auto; }
    .login-content { max-width: 390px; }
    .login-footer { max-width: 390px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
    .login-shell { grid-template-columns: minmax(0, .9fr) minmax(400px, 1fr); }
    .login-story { padding: 34px 30px; }
    .login-main { padding: 34px 32px 25px; }
    .story-content h2 { font-size: 39px; }
    .story-eyebrow { max-width: 210px; font-size: 9px; line-height: 1.8; }
    .card-scene { transform: scale(.86); transform-origin: left center; margin-right: -30px; }
    .story-foot { font-size: 10px; }
}
@media (max-width: 760px) {
    .login-shell { display: block; }
    .login-story { display: none; }
    .login-main { min-height: 100vh; min-height: 100svh; padding: 28px 24px 23px; }
    .mobile-brand { display: inline-flex; font-size: 22px; }
    .mobile-brand .brand-symbol { width: 27px; height: 21px; }
    .login-content { padding: 55px 0 45px; }
    .login-heading h1 { font-size: 40px; }
    .login-heading p { font-size: 14px; }
    .login-form { margin-top: 28px; }
    .login-footer { padding-top: 15px; }
}
@media (max-width: 360px) {
    .login-main { padding-right: 20px; padding-left: 20px; }
    .login-content { padding-top: 42px; }
    .login-heading h1 { font-size: 36px; }
    .desktop-break { display: none; }
}
@media (max-height: 750px) and (min-width: 761px) {
    .login-story { padding-top: 30px; padding-bottom: 26px; }
    .story-content { padding-top: 38px; }
    .story-content h2 { font-size: 42px; }
    .card-scene { height: 225px; margin-top: 15px; transform: scale(.9); transform-origin: left top; }
    .login-content { padding-top: 35px; padding-bottom: 35px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .login-submit[aria-disabled="true"] .submit-arrow { animation: none; }
}
