:root {
  --navy: #0e2945;
  --blue: #2f80c9;
  --line: #dce5ed;
  --muted: #718096;
  --bg: #f3f6fa;
  --text: #173653;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(47,128,201,.10), transparent 34%),
    var(--bg);
}

.auth-shell {
  width: min(430px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.auth-brand > div:last-child {
  display: flex;
  flex-direction: column;
}

.auth-brand strong { font-size: 18px; color: var(--navy); }
.auth-brand span { color: var(--muted); font-size: 11px; margin-top: 2px; }

.brand-square {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-weight: 900;
  font-size: 20px;
}

.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(14, 41, 69, .08);
}

.eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #4d83ae;
}

h1 {
  margin: 6px 0 8px;
  font-size: 24px;
  letter-spacing: -.02em;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label:not(.remember) {
  display: grid;
  gap: 6px;
}

.auth-form label > span {
  color: #596d83;
  font-size: 10px;
  font-weight: 750;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  color: var(--text);
  outline: none;
  background: #fbfcfe;
}

.auth-form input:focus {
  border-color: #84b8df;
  box-shadow: 0 0 0 3px rgba(47,128,201,.10);
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
}

.remember span {
  font-weight: 500 !important;
}

.auth-primary {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
}

.auth-link {
  display: inline-block;
  margin-top: 16px;
  color: #2f76ad;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
}

.flash-stack {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.flash {
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.4;
}

.flash.error { background: #fff0f0; color: #8f3434; border: 1px solid #f1cece; }
.flash.success { background: #edf9f1; color: #386f4a; border: 1px solid #cce8d5; }
.flash.info { background: #eef6fd; color: #356c96; border: 1px solid #d2e6f6; }

.auth-foot {
  margin: 0;
  text-align: center;
  color: #8998a9;
  font-size: 9px;
}

.link-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  margin-top: 10px;
}
