:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8edf2;
  background: #0a121a;
  font-synthesis: none;
  --red: #e46662;
  --muted: #9caab8;
  --line: #2a3947;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 0, #152532 0, transparent 55%), #0a121a;
}
a { color: #d8e2ec; text-underline-offset: 4px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #e89f75;
  outline-offset: 4px;
}
.auth-shell { width: min(100% - 40px, 660px); margin: 0 auto; padding: 44px 0 24px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  flex: 0 0 52px;
  background: #d85551;
  color: white;
  font-weight: 800;
  font-size: 29px;
  border-radius: 10px 10px 18px 18px;
  box-shadow: 0 5px 24px #d855511c;
}
.auth-brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 1.6px; color: #aab7c3; margin: 0 0 7px; }
.auth-brand strong { display: block; font-size: 24px; letter-spacing: 1px; line-height: 1; }
.auth-brand strong > span { color: var(--red); }
.auth-card {
  background: linear-gradient(145deg, #172330, #111b25);
  border: 1px solid var(--line);
  border-top: 3px solid #d9635e;
  border-radius: 10px;
  padding: 34px 36px;
  box-shadow: 0 18px 55px #0002;
}
.eyebrow { display: block; color: #c48d87; font-size: 10px; font-weight: 700; letter-spacing: 1.9px; margin-bottom: 12px; }
h1 { margin: 0 0 12px; font-size: clamp(25px, 4vw, 33px); letter-spacing: -0.6px; line-height: 1.15; }
p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.intro { margin-bottom: 28px; }
form { margin: 0; }
label { display: block; margin: 18px 0 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: #d5dfe9; }
input[type="password"], input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #354758;
  border-radius: 6px;
  background: #0d1720;
  color: #f1f5f8;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
}
input:hover { border-color: #60788d; }
input:focus { border-color: #b77872; }
fieldset {
  margin: 26px 0 0;
  padding: 8px 20px 20px;
  border: 1px solid #314351;
  border-radius: 7px;
}
legend { padding: 0 9px; color: #ecf1f5; font-size: 15px; font-weight: 700; }
fieldset p { font-size: 12px; }
.field-note { margin-top: 12px; color: #8f9eae; font-size: 12px; line-height: 1.6; }
.check-label { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; font-size: 14px; }
.check-label input { appearance: auto; width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #dc6862; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  margin-top: 24px;
  padding: 13px 18px;
  border: 1px solid #e3746c;
  border-radius: 6px;
  background: #c64f4c;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #d55d58; }
.button-secondary { background: transparent; color: #afbdca; border-color: #3a4b59; margin-top: 20px; }
.button-secondary:hover { background: #21313f; }
.message { margin: 20px 0; border: 1px solid; border-radius: 6px; padding: 13px 16px; font-size: 13px; }
.message.error { color: #f3b8b3; border-color: #9d554e; background: #44242b; }
.message.success { color: #b1d8c1; border-color: #446b5b; background: #1a352e; }
.info-box { margin-top: 26px; padding: 17px 18px; border: 1px solid #384a58; border-radius: 7px; background: #14212c; }
.info-box strong { display: block; margin-bottom: 7px; color: #ccd8e3; font-size: 13px; }
.info-box p { font-size: 12px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; margin-top: 25px; border-top: 1px solid var(--line); font-size: 13px; }
.logout-form { margin-top: 4px; }
.auth-footer { padding-top: 22px; color: #708596; font-size: 10px; text-align: center; line-height: 1.7; }
@media (max-width: 520px) {
  .auth-shell { width: min(100% - 24px, 660px); padding-top: 24px; }
  .auth-card { padding: 27px 20px; }
  .auth-brand { gap: 11px; margin-left: 4px; }
  .auth-brand small { font-size: 7px; letter-spacing: 1.1px; }
  .auth-brand strong { font-size: 20px; }
  fieldset { padding-left: 14px; padding-right: 14px; }
}
