:root {
  --bg: #f7fbff;
  --text: #0f172a;
  /* negro suave */
  --muted: #64748b;
  --card: rgba(255, 255, 255, .92);
  --border: rgba(15, 23, 42, .12);
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
  --radius: 18px;

  --primary: #2563eb;
  --primary2: #06b6d4;
}

html,
body {
  height: 100%;
}

body.auth-light {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text) !important;
  /* fuerza texto oscuro */
}

/* Por si algún CSS viejo dejó texto blanco en todo */
.auth-page,
.auth-page * {
  color: inherit;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(900px 600px at 60% 90%, rgba(34, 197, 94, .10), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

/* Card */
.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .08), rgba(6, 182, 212, .08));
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.auth-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(15, 23, 42, .08);
  padding: 7px;
}

.auth-title {
  font-weight: 800;
  line-height: 1.15;
  font-size: 16px;
  /* más pequeño */
  color: var(--text) !important;
}

.auth-sub {
  font-size: 12px;
  color: var(--muted) !important;
  margin-top: 2px;
}

.auth-body {
  padding: 14px;
  background: rgba(255, 255, 255, .85);
}

/* Controles normales (no “gigantes”) */
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, .14);
  color: var(--text) !important;
  background-color: #fff;
}

.form-control::placeholder {
  color: rgba(100, 116, 139, .9);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .16);
  border-color: rgba(37, 99, 235, .35);
}

.auth-password {
  position: relative;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  color: rgba(15, 23, 42, .65);
  display: grid;
  place-items: center;
}

.auth-link {
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-btn {
  background: var(--primary);
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .20);
}

.auth-btn:hover {
  filter: brightness(1.02);
}

.auth-quick {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-quick .btn {
  border-radius: 12px;
  font-size: 12px;
  padding: 8px 10px;
}

.auth-quick .material-icons {
  font-size: 18px;
  vertical-align: -4px;
  margin-right: 6px;
}

.auth-footer {
  text-align: center;
}

.auth-footer .small {
  font-size: 11px;
}

.auth-modal {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}