/* Portal SEI – Auth Pages  (basado en ejemplo.html) */

.auth-body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d2247 0%, var(--brand) 55%, var(--brand-lt) 100%);
  padding: 24px 16px;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ── Logo ────────────────────────────────────────────────────────────────── */
.auth-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.auth-logo {
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* ── Title / description ─────────────────────────────────────────────────── */
.auth-form-header { margin-bottom: 1.75rem; }
.auth-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.auth-desc  { font-size: 13px; color: var(--text-muted); }

/* ── Fields ──────────────────────────────────────────────────────────────── */
.auth-form .field { margin-bottom: 1rem; }
.auth-form .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.auth-form .field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg);
  color: var(--text);
}
.auth-form .field input:focus {
  border-color: var(--brand-lt);
  background: #fff;
}
.auth-form .field-password-wrap input { padding-right: 42px; }

/* ── Login button ────────────────────────────────────────────────────────── */
.auth-form .btn-primary {
  width: 100%;
  padding: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 4px;
  text-align: center;
  display: block;
}
.auth-form .btn-primary:hover   { background: var(--brand-lt); text-decoration: none; }
.auth-form .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Forgot / back links ─────────────────────────────────────────────────── */
.auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 13px;
}
.auth-links a { color: var(--brand-lt); font-weight: 500; }
.auth-links a:hover { color: var(--brand); }

/* ── Footer (logo cliente) ───────────────────────────────────────────────── */
.auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.auth-footer-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-footer-logo {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
}

/* ── Password rules ──────────────────────────────────────────────────────── */
.password-rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 14px;
}
.rule      { font-size: 12px; color: var(--text-muted); transition: color 0.15s; }
.rule-ok   { color: var(--success); font-weight: 600; }

/* ── Error/404/403 inside auth card ─────────────────────────────────────── */
.auth-card .error-page { min-height: auto; padding: 16px 0; }
.auth-card .error-code  { font-size: 52px; }
