* { box-sizing: border-box; }
:root { font-family: "Segoe UI", Arial, sans-serif; color: #253b35; background: #f4f3ee; font-synthesis: none; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px 32px; }
button, input { font: inherit; }
.login-shell { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; max-width: 1100px; min-height: 690px; background: #fffefa; border: 1px solid #e3e5dd; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 70px #233e3510; }
.welcome-panel { background: #1c4238; color: #fffdf5; padding: 45px 48px 35px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.brand, .welcome-copy, .welcome-footer { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 18px; letter-spacing: 4px; font-weight: 600; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 48px; border: 1px solid #c8b78a; border-radius: 22px 22px 3px 3px; color: #e5d7b1; font: 30px Georgia, serif; }
.brand-caption { display: block; margin-top: 5px; font-size: 9px; letter-spacing: 2px; font-weight: 400; }
.welcome-copy { margin: 76px 0 90px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; }
.welcome-copy .eyebrow { color: #d7c89f; }
h1 { font: 400 clamp(38px, 4.1vw, 54px)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -1.7px; margin: 24px 0; }
.welcome-copy p { max-width: 320px; color: #d0ddd6; font-size: 15px; line-height: 1.85; }
.panel-rule { width: 42px; height: 1px; background: #b9aa81; margin: 30px 0 22px; }
.panel-note { font-size: 12px; color: #d9e1db; }
.welcome-footer { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #c3d1c8; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #c9b984; flex-shrink: 0; }
.arch { position: absolute; width: 290px; height: 510px; border: 1px solid #e1d4a51a; border-radius: 160px 160px 0 0; transform: rotate(24deg); pointer-events: none; }
.arch-one { right: -185px; bottom: -110px; }
.arch-two { right: -150px; bottom: -115px; }
.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 70px 64px 28px; }
.form-content { margin: auto 0; padding: 30px 0 45px; }
.form-eyebrow { color: #6d796c; font-size: 10px; }
h2 { font-size: 32px; font-weight: 600; letter-spacing: -1px; margin: 16px 0 10px; }
.form-intro { color: #737b74; font-size: 14px; margin: 0 0 35px; line-height: 1.6; }
.field { margin-bottom: 23px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input { width: 100%; min-height: 50px; border: 1px solid #d8ddd5; border-radius: 8px; padding: 13px 14px; background: #fff; color: #253b35; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #858b84; }
input:focus { outline: none; border-color: #426e5b; box-shadow: 0 0 0 3px #426e5b20; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-height: 40px; min-width: 56px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #48614f; cursor: pointer; font-size: 12px; font-weight: 600; }
.password-toggle:hover { background: #edf1e9; }
button:focus-visible { outline: 3px solid #a68b50; outline-offset: 3px; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 50px; padding: 13px 18px; border: 0; border-radius: 8px; background: #234d3f; color: white; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 7px; transition: background .15s; }
.submit-button:hover { background: #163d30; }
.submit-button:disabled { opacity: .7; cursor: wait; }
.submit-button span:last-child { font-size: 22px; font-weight: 400; line-height: 1; }
.help-text { text-align: center; font-size: 12px; line-height: 1.9; color: #777e76; margin: 28px 0 0; }
.help-text span { color: #445b4b; }
.form-footer { text-align: center; font-size: 10px; color: #777e76; line-height: 1.8; }
.form-footer span { padding: 0 5px; }
.error-message { background: #fff0eb; border: 1px solid #efd1c8; border-radius: 8px; padding: 12px 14px; margin: -10px 0 24px; font-size: 13px; line-height: 1.6; color: #983d2b; }
.caps-warning { color: #875716; font-size: 12px; margin: 8px 0 0; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .welcome-panel { padding: 38px 30px; } .form-panel { padding: 45px 34px 25px; } }
@media (max-width: 640px) {
    body { padding: 20px 14px; }
    .login-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 18px; max-width: 440px; }
    .welcome-panel { padding: 25px 28px; }
    .brand { font-size: 15px; }
    .brand-icon { width: 36px; height: 40px; font-size: 25px; }
    .welcome-copy { margin: 28px 0 4px; }
    .welcome-copy .eyebrow, .welcome-copy p, .panel-rule, .panel-note, .welcome-footer { display: none; }
    h1 { font-size: 34px; margin: 0; letter-spacing: -1px; }
    h1 br { display: none; }
    .form-panel { padding: 30px 28px 22px; }
    .form-content { padding: 0 0 30px; }
    h2 { font-size: 28px; }
    .form-intro { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
