:root { --charcoal: #36454f; --charcoal-dark: #2b383f; --gold: #c8a53b; --cream: #f5e9d1; --white: #fff; --muted: #7d888d; --line: #e7decc; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--charcoal); background: var(--cream); font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .85fr) minmax(520px, 1.15fr); }
.brand-panel { min-height: 100vh; padding: 36px clamp(34px, 5vw, 72px); position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--charcoal-dark); color: #fff; }
.brand-decoration { position: absolute; border: 1px solid rgba(200,165,59,.16); border-radius: 50%; pointer-events: none; }
.decoration-one { width: 420px; height: 420px; right: -220px; top: -130px; box-shadow: 0 0 0 58px rgba(200,165,59,.035), 0 0 0 116px rgba(200,165,59,.025); }
.decoration-two { width: 280px; height: 280px; left: -180px; bottom: -120px; box-shadow: 0 0 0 52px rgba(200,165,59,.03); }
.login-brand, .mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-logo { width: 48px; height: 48px; padding: 6px; display: grid; place-items: center; border: 1px solid rgba(200,165,59,.55); border-radius: 12px; background: var(--cream); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.login-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.login-brand > span:last-child, .mobile-brand > span:last-child { display: grid; }
.login-brand strong, .mobile-brand strong { font-size: 20px; letter-spacing: -.3px; }
.login-brand small, .mobile-brand small { margin-top: 3px; color: #c8bfae; font-size: 10px; }
.brand-message { width: min(500px, 100%); margin: auto 0; position: relative; z-index: 1; }
.brand-eyebrow { margin: 0 0 13px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.brand-message h1 { margin: 0; max-width: 490px; font-size: clamp(32px, 3.6vw, 49px); line-height: 1.08; letter-spacing: -1.5px; }
.brand-message > p:nth-child(3) { max-width: 470px; margin: 19px 0 0; color: #d3cab9; font-size: 14px; line-height: 1.65; }
.brand-features { margin-top: 34px; display: grid; gap: 18px; }
.brand-features > div { display: flex; align-items: flex-start; gap: 12px; }
.brand-features > div > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(200,165,59,.22); border-radius: 9px; background: rgba(200,165,59,.1); color: var(--gold); }
.brand-features svg { width: 16px; }
.brand-features p { margin: 0; display: grid; gap: 4px; }
.brand-features strong { font-size: 11px; }
.brand-features small { color: #aa9f89; font-size: 9.5px; }
.brand-footer { position: relative; z-index: 1; padding-top: 22px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.08); color: #aa9f89; font-size: 8.5px; }
.brand-footer strong { color: #d3cab9; }
.form-panel { min-height: 100vh; padding: 36px 28px; display: grid; place-items: center; background: #fff; }
.form-wrap { width: min(410px, 100%); }
.mobile-brand { display: none; margin-bottom: 44px; }
.mobile-brand small { color: var(--muted); }
.form-heading > p { margin: 0 0 11px; color: #9a7b20; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.form-heading h2 { margin: 0; color: var(--charcoal-dark); font-size: clamp(28px, 3vw, 34px); letter-spacing: -.8px; }
.form-heading > span { margin-top: 8px; display: block; color: var(--muted); font-size: 11.5px; }
.login-form { margin-top: 30px; display: grid; }
.login-form > label, .password-label label { margin-bottom: 7px; color: var(--charcoal); font-size: 9px; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }
.login-input { height: 48px; position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: .15s ease; }
.login-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,165,59,.15); }
.login-input > svg { width: 17px; margin-left: 14px; color: #8c969b; }
.login-input input { min-width: 0; flex: 1; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--charcoal-dark); font-size: 11.5px; }
.login-input input::placeholder { color: #a6adb0; }
.password-label { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.password-label label { margin-bottom: 0; }
.password-help-row { margin-top: 8px; display: flex; justify-content: flex-end; }
.password-help-row button { padding: 2px 0; border: 0; background: transparent; color: #9a7b20; font-size: 9px; font-weight: 700; cursor: pointer; }
.password-toggle { width: 44px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle svg { width: 17px; grid-area: 1 / 1; }
.password-toggle .eye-closed { display: none; }
.password-toggle.visible .eye-open { display: none; }
.password-toggle.visible .eye-closed { display: block; }
.remember-option { margin: 13px 0 20px !important; display: flex; align-items: center; gap: 8px; color: #66737a !important; font-size: 9px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.remember-option input { position: absolute; opacity: 0; }
.remember-option > span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #d5cbb7; border-radius: 4px; }
.remember-option input:checked + span { border-color: var(--gold); background: var(--gold); }
.remember-option input:checked + span::after { content: ""; width: 6px; height: 3px; border-bottom: 2px solid var(--charcoal); border-left: 2px solid var(--charcoal); transform: rotate(-45deg) translateY(-1px); }
.login-button { height: 48px; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--gold); border-radius: 9px; background: var(--gold); color: var(--charcoal-dark); font-size: 10.5px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 20px rgba(200,165,59,.22); }
.login-button:hover { background: #b9952f; }
.login-button:disabled { opacity: .65; cursor: wait; }
.login-button svg { width: 17px; transition: transform .15s ease; }
.login-button:hover svg { transform: translateX(3px); }
.login-status { min-height: 0; margin-top: 12px; color: #75601e; font-size: 9.5px; text-align: center; }
.login-status:not(:empty) { min-height: 34px; padding: 9px 11px; border: 1px solid #dfc982; border-radius: 7px; background: #fbf5e8; }
.demo-note { margin-top: 24px; padding: 12px 13px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 9px; background: #faf7f1; }
.demo-note svg { flex: 0 0 16px; width: 16px; color: #9a7b20; }
.demo-note p { margin: 0; display: grid; gap: 3px; }
.demo-note strong { font-size: 9px; }
.demo-note span { color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.form-footer { margin-top: 31px; color: #9aa2a6; font-size: 8px; text-align: center; }

@media (max-width: 850px) {
    .login-shell { display: block; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; padding: 32px 22px; background: linear-gradient(150deg, #fff 0%, #faf7f1 100%); }
    .mobile-brand { display: flex; }
}

@media (max-width: 440px) {
    .form-panel { align-items: start; padding-top: 24px; }
    .mobile-brand { margin-bottom: 36px; }
    .form-heading h2 { font-size: 27px; }
}
