:root {
  color-scheme: light;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  color: #23261f;
  background: #eeece3;
  --muted: #514f42;
  --edge: #cfc9b9;
  --panel: #f8f6ed;
  --accent: #b73d21;
  --accent-dark: #963018;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: #23261f; background: #e8beaa; }

.login-main { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 20px 16px; }
.login-panel { width: min(100%, 374px); padding: clamp(22px, 6vw, 29px); border: 1px solid var(--edge); border-radius: 17px; background: var(--panel); }
.login-panel h1 { font-size: 27px; font-weight: 720; letter-spacing: -.035em; line-height: 1.16; }
.login-panel form { display: grid; gap: 8px; margin-top: 19px; }
.login-panel label { color: var(--muted); font-size: 13px; font-weight: 620; }
.login-panel input { width: 100%; min-width: 0; min-height: 46px; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 9px; color: inherit; background: #fffdf6; font-size: 21px; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: .17em; caret-color: var(--accent); }
.login-panel input:hover { border-color: var(--muted); }
.login-panel input[aria-invalid="true"] { border-color: var(--accent); }
.login-button { min-height: 44px; margin-top: 4px; padding: 7px 13px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font-weight: 650; }
.login-button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.login-button:disabled { color: var(--muted); background: #eeece3; border-color: var(--edge); }
.login-secondary { display: flex; width: 100%; min-height: 41px; margin-top: 8px; padding: 7px 10px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; color: var(--accent-dark); background: transparent; font-size: 13px; font-weight: 650; text-align: center; text-underline-offset: 3px; }
.login-secondary:hover:not(:disabled) { border-color: var(--edge); background: #f1ede0; }
.login-secondary:disabled { color: var(--muted); }
.login-message { margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.login-message[data-tone="error"] { color: var(--accent-dark); }
