/* ─── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --color-primary:    #1965A3;
  --color-bg:         #F1F5F9;
  --color-card:       #FFFFFF;
  --color-text:       #0F172A;
  --color-text-muted: #64748B;
  --color-border:     #E2E8F0;
  --radius:           0.5rem;
  --shadow:           0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ─── Logo ───────────────────────────────────────────────────────────────────── */

.auth-logo {
  display: block;
  /* margin: 0 0 1.5rem; */
  height: 4rem;
  width: auto;
  margin-right: auto;
}

/* ─── Card ───────────────────────────────────────────────────────────────────── */

.auth-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  padding-top: 0.5rem;
  width: 100%;
  max-width: 400px;
  min-height: 384px;
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.auth-loading {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.5rem 0;
}

.auth-footer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-footer a,
.auth-desc a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-footer a:hover,
.auth-desc a:hover { text-decoration: underline; }

/* ─── Form fields ────────────────────────────────────────────────────────────── */

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(25,101,163,.15);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ─── Error message ──────────────────────────────────────────────────────────── */

.error-msg {
  font-size: 0.8125rem;
  color: #DC2626;
  margin-bottom: 0.875rem;
  padding: 0.5rem 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
}

/* ─── Button ─────────────────────────────────────────────────────────────────── */

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: #155490; }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
