:root {
  color-scheme: light;
  --background: #F7F7F4;
  --surface: #FFFFFF;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --dolomite-red: #B5182D;
  --dolomite-red-dark: #8E1023;
  --dolomite-red-soft: #F6E8EA;
  --dolomite-red-glow: rgb(181 24 45 / 12%);
  --danger-red: #C62828;
  --accent: var(--dolomite-red);
  --text: #20212A;
  --muted: #61636E;
  --line: #DDDED9;
  --graphite: #191B23;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: "Nunito", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3, .brand-name, .brand-mark { font-family: "Poppins", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--dolomite-red-soft); color: var(--dolomite-red-dark); }
.login-layout { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.brand-name { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--dolomite-red); color: white; border-radius: 10px; font-weight: 700; }
.login-card { width: 100%; max-width: 448px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px rgb(25 27 35 / 5%), 0 2px 5px rgb(25 27 35 / 2%); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--dolomite-red); font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; }
.eyebrow > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--dolomite-red); }
h1 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 33px); font-weight: 600; line-height: 1.2; letter-spacing: -.05em; text-wrap: balance; }
.card-heading { text-align: left; margin-bottom: 30px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.field { margin-bottom: 22px; }
.field > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.field input { width: 100%; min-width: 0; height: 50px; border: 1px solid #BCC1CA; border-radius: 8px; padding: 0 14px; color: var(--text); background: white; transition: border-color 160ms, box-shadow 160ms; }
.field input::placeholder { color: #707580; font-size: 14px; }
.field input:hover { border-color: #858B97; }
.field input:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 5px rgb(37 99 235 / 7%); }
.field input[aria-invalid="true"] { border-color: var(--danger-red); }
.password-field { position: relative; }
.password-field input { padding-right: 90px; }
.password-toggle { position: absolute; right: 5px; top: 3px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.password-toggle:hover { color: var(--primary-dark); background: #F0F4FC; }
.form-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.remember-label { display: flex; gap: 8px; align-items: center; min-height: 44px; color: var(--muted); cursor: pointer; }
.remember-label input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); cursor: pointer; }
a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-dark); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 3px; }
.submit-button { width: 100%; min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; padding: 13px 18px; border: 1px solid transparent; border-radius: 8px; background: var(--dolomite-red); color: white; font-weight: 800; cursor: pointer; transition: background 180ms, transform 180ms, box-shadow 180ms; }
.submit-button:hover { background: var(--dolomite-red-dark); transform: translateY(-2px); box-shadow: 0 7px 20px var(--dolomite-red-glow); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.button-arrow { font-size: 20px; line-height: 1; transition: transform 180ms; }
.submit-button:hover .button-arrow { transform: translateX(3px); }
.message:empty, .recovery-message:empty { display: none; }
.message { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.6; border: 1px solid; overflow-wrap: anywhere; }
.message[data-state="error"] { color: #A32121; background: #FFF4F4; border-color: #EAC6C6; }
.message[data-state="success"] { color: #245D3A; background: #F1F8F3; border-color: #C8DDCE; }
.recovery-message, .noscript-message { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.card-footer { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.test-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--dolomite-red); }
.page-footer { margin-top: 26px; text-align: center; color: var(--muted); font-size: 11px; }
.page-footer span { padding: 0 8px; }
@media (max-width: 480px) {
  .login-layout { padding: 28px 16px; }
  .login-card { padding: 28px 22px; border-radius: 14px; }
  h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .submit-button:hover, .submit-button:active, .submit-button:hover .button-arrow { transform: none; }
}
