:root {
  --auth-bg: #e9edf3;
}

/* Fondo centrado */
body.auth {
  min-height: 100vh;
  background: var(--auth-bg);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Card del login */
.auth-card {
  width: min(420px, 94vw);
  background: #fff;
  border: 1px solid var(--border-color, #e0e6f0);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.25rem 1.35rem;
}

/* Encabezado */
.auth-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.auth-head .logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #f3f6fb;
  border: 1px solid #e0e6f0;
  font-size: 1.15rem;
}
.auth-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.auth-sub {
  color: var(--text-muted, #6b7280);
  margin: 0.15rem 0 0;
}

/* Formulario */
.auth-form {
  margin-top: 0.9rem;
}
.auth-row {
  margin-bottom: 0.85rem;
}
.auth-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0f172a;
}
.auth-row input[type="text"],
.auth-row input[type="password"] {
  width: 100%;
  background: #fff;
  color: var(--text-color, #111827);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.auth-row input:focus {
  border-color: var(--primary-color, #1e88e5);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

/* Opciones (recordar, mostrar) */
.auth-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 0.75rem;
  font-size: 0.95rem;
}
.auth-opts .opt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-color, #111827);
}

/* Botón login */
.auth-btn {
  width: 100%;
}

/* Pie del formulario */
.auth-foot {
  margin-top: 0.9rem;
  text-align: center;
}
.auth-foot a {
  text-decoration: none;
}
.auth-foot a:hover {
  text-decoration: underline;
}

/* Mensajes */
.message {
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin: 0.6rem 0;
  font-weight: 600;
}
.message.error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #991b1b;
}
