:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #26352b;
    background: #f4f7f2;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: radial-gradient(ellipse at 15% 15%, #e6efdccc 0, transparent 48%), radial-gradient(ellipse at 90% 85%, #dfece2aa 0, transparent 45%), #f4f7f2;
}
.login-shell { width: 100%; max-width: 440px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 26px; font-size: 15px; font-weight: 600; letter-spacing: 2px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: #398629; box-shadow: 0 4px 10px #3986291a; }
.brand-mark svg { width: 23px; height: 23px; }
.login-card { padding: 38px 40px 40px; border: 1px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 20px 65px #263d2910, 0 3px 10px #263d2905; }
.login-header { margin-bottom: 30px; }
.login-eyebrow { color: #4c8739; font-size: 10px; font-weight: 700; letter-spacing: 2.4px; }
.login-header h1 { margin: 10px 0 8px; font-size: 30px; font-weight: 650; letter-spacing: -0.7px; line-height: 1.4; }
.login-header p { margin: 0; color: #758077; font-size: 14px; line-height: 1.6; }
.login-field + .login-field { margin-top: 21px; }
.login-field > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; top: 16px; left: 15px; width: 19px; height: 19px; stroke: #859187; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-input { display: block; width: 100%; height: 52px; padding: 0 15px 0 44px; border: 1px solid #e0e6df; border-radius: 10px; outline: none; background: #fafbf9; color: #26352b; font: inherit; font-size: 14px; transition: border-color 160ms, box-shadow 160ms, background 160ms; }
.login-input::placeholder { color: #8b948c; }
.login-input:hover { border-color: #b9c9b4; }
.login-input:focus { border-color: #559e38; background: #fff; box-shadow: 0 0 0 3px #559e381a; }
.input-wrap:focus-within > svg { stroke: #43832e; }
.login-options { display: flex; align-items: center; margin: 16px 0 23px; }
.remember-label { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; color: #667168; font-size: 13px; cursor: pointer; }
.remember-label input { width: 16px; height: 16px; margin: 0; accent-color: #398629; cursor: pointer; }
.remember-label input:focus-visible, .login-submit:focus-visible { outline: 3px solid #80ae63; outline-offset: 4px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: 10px; background: #398629; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 12px #39862924; transition: background 160ms, box-shadow 160ms; }
.login-submit svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-submit:hover { background: #2e7220; box-shadow: 0 6px 16px #39862930; }
.login-submit:active { background: #28651b; }
.login-errors { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #f0d0cb; border-radius: 10px; background: #fff6f4; color: #a23829; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.login-errors p { margin: 0; }
.login-errors p + p { margin-top: 5px; }
.login-footer { margin: 24px 0 0; color: #7c897c; font-size: 12px; text-align: center; letter-spacing: 1px; line-height: 1.6; }
@media (max-width: 480px) {
    .login-page { padding: 32px 20px; }
    .login-card { padding: 30px 26px; border-radius: 20px; }
    .login-header h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-input, .login-submit { transition: none; }
}
