/* Standalone login palette: warm offwhite, paper and graphite. */
:root { color-scheme: light; font-family: 'DM Sans', sans-serif; color: #29292d; background: #f7f6f3; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; -webkit-font-smoothing: antialiased; }
.login-card { width: 100%; max-width: 410px; border: 1px solid #dddbd6; border-radius: 13px; background: #fff; overflow: hidden; box-shadow: 0 3px 7px #29292d06, 0 18px 45px -14px #29292d30; }
.login-panel { padding: 34px 36px 32px; }
.login-mark { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto 26px; border-radius: 13px; background: linear-gradient(#48484d, #303034); border: 1px solid #353539; box-shadow: inset 0 1px 0 #ffffff20, 0 3px 5px #29292d12; }
.login-mark img { display: block; width: 46px; height: 46px; border-radius: inherit; }
.login-eyebrow { display: block; text-align: center; color: #77746f; font-size: 9px; font-weight: 600; letter-spacing: .14em; margin-bottom: 9px; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.045em; text-align: center; margin: 0; }
.login-description { font-size: 12px; line-height: 1.6; text-align: center; margin: 9px 0 30px; color: #6f6d69; }
.login-form { display: flex; flex-direction: column; }
label { font-size: 12px; font-weight: 500; margin-bottom: 9px; }
input[type='password'] { font-family: 'JetBrains Mono', monospace; width: 100%; min-height: 42px; border: 1px solid #dddbd6; border-radius: 7px; padding: 11px 12px; background: #fff; color: #29292d; font-size: 12px; box-shadow: 0 1px 2px #29292d04; transition: border-color .15s, box-shadow .15s; }
input::placeholder { font-family: 'DM Sans', sans-serif; color: #77746f; font-size: 12px; }
input:focus { border-color: #a19d95; outline: 2px solid #a19d952b; outline-offset: 2px; }
input[aria-invalid='true'] { border-color: #bd8b73; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 41px; margin-top: 24px; padding: 10px 14px; border-radius: 7px; border: 1px solid #353539; background: linear-gradient(#48484d, #303034); color: #fff; font: 500 12px 'DM Sans', sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 #ffffff18, 0 2px 3px #29292d14; transition: filter .15s, box-shadow .15s; }
.login-submit:hover { filter: brightness(1.12); box-shadow: inset 0 1px 0 #ffffff18, 0 3px 6px #29292d20; }
.login-submit:focus-visible { outline: 2px solid #a19d95; outline-offset: 3px; }
.login-submit:disabled { cursor: wait; opacity: .75; }
.button-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-spinner { display: none; width: 13px; height: 13px; border: 1.5px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-submitting .button-arrow { display: none; }
.is-submitting .button-spinner { display: block; }
.login-footer { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 16px 20px; background: #faf9f7; border-top: 1px solid #e8e6e1; color: #6f6d69; font-size: 11px; }
.login-footer svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-wordmark { margin: 24px 0 0; color: #77746f; font-size: 11px; text-align: center; }
.login-wordmark span { padding: 0 6px; color: #aaa69e; }
.form-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 10px 11px; border: 1px solid #eadfd4; border-radius: 7px; background: #faf3ec; color: #965737; font-size: 11px; line-height: 1.6; }
.form-error svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { body { padding: 28px 18px; } .login-panel { padding: 30px 25px 28px; } h1 { font-size: 21px; } }
@media (max-height: 550px) { body { justify-content: flex-start; padding-top: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
