:root {
  --blue: #1d4e9e;
  --teal: #1a8fb5;
  --green: #62bb46;
  --navy: #061634;
  --text: #0b1b33;
  --muted: #5a6b82;
  --line: #dfe7f1;
  --danger: #b42318;
  --grad: linear-gradient(120deg, #1d4e9e, #1a8fb5 55%, #62bb46);
}
* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(26, 143, 181, 0.13), transparent 31rem),
    radial-gradient(circle at 82% 85%, rgba(98, 187, 70, 0.1), transparent 28rem),
    #f3f7fc;
}
button, input { font: inherit; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.auth-card {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px -38px rgba(6, 22, 52, 0.48);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.brand img { width: 52px; height: 36px; object-fit: contain; }
.brand b { display: block; font-size: 17px; letter-spacing: 0.04em; }
.brand span { display: block; color: var(--muted); font-size: 12.5px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.intro { margin: 13px 0 24px; color: var(--muted); }
form { display: grid; gap: 10px; }
label { margin-top: 5px; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
  color: var(--text);
}
input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26, 143, 181, 0.14); }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.show-password {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.show-password:hover { background: #eaf2fb; }
small, .session-note { color: var(--muted); font-size: 12.5px; }
.error {
  margin: 4px 0 0;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--danger);
  background: #fef3f2;
  font-size: 13px;
  font-weight: 600;
}
.submit {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 30px -16px rgba(29, 78, 158, 0.72);
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.04); }
.submit:disabled { opacity: 0.62; cursor: wait; }
.session-note { margin: 6px 0 0; text-align: center; }
.loading { padding: 22px 0; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .auth-card { padding: 26px 22px; border-radius: 19px; }
}
