/* ============================================================
   Smart Credit — Auth Pages (login, registro, recuperar clave)
   Reusa tokens y componentes de app.css.
   ============================================================ */

.auth-body {
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-brand .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

.auth-brand .logo-text { display: flex; flex-direction: column; }
.auth-brand .logo-text strong { font-size: 20px; font-weight: 800; color: var(--blue-deep); }
.auth-brand .logo-text span { font-size: 12px; color: var(--text-muted); }

.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 32px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 22px;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1.5px solid;
}

.auth-alert.error { background: var(--red-pale); border-color: var(--red); color: var(--red); }
.auth-alert.success { background: var(--green-pale); border-color: var(--green); color: var(--green); }

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-links a { color: var(--blue-mid); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-reset-link-box {
  background: var(--blue-pale);
  border: 1px dashed var(--blue-mid);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 12px;
  word-break: break-all;
  margin-top: 16px;
  color: var(--blue-deep);
}

.auth-reset-link-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--amber);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ─── Marca (logo real de Smart Credit) ──────────────────── */
.auth-brand { flex-direction: column; gap: 8px; }
.auth-logo { display: block; width: 240px; max-width: 80%; height: auto; }
.auth-tagline { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); }
