/* style-auth.css – NTB Login & Registro (tema oscuro grafito) */

/* ---------- Paleta / variables ---------- */
:root {
  --bg-main: #111416;
  --panel: #181b1f;
  --ui-bg: #1b1f24;
  --border: #272b31;

  --text: #eceff3;
  --text-sub: #a5abb3;

  --primary: #ff4450;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* ---------- Base ---------- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Animación fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Contenedor principal ---------- */
.auth-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* ---------- Tarjeta central ---------- */
.auth-card {
  background: var(--panel);
  padding: 2.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.auth-card h2 {
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ---------- Formulario ---------- */
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Inputs */
.auth-card input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: var(--ui-bg);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255,68,80,.25);
}

/* Botón principal */
.auth-card button {
  padding: 0.9rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.25s, box-shadow 0.25s;
}
.auth-card button:hover {
  background-color: #e33d46;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,68,80,.25);
}

/* Enlace inferior */
.auth-alt {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}
.auth-alt a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-alt a:hover {
  text-decoration: underline;
}

/* ---------- Mensajes ---------- */
.error-message {
  color: var(--danger);
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.flash-messages {
  text-align: center;
  margin-bottom: 10px;
}
.flash {
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
}
.flash.error {
  background-color: var(--danger);
  border: 1px solid #b91c1c;
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
  .auth-card {
    padding: 1.6rem;
  }
  .auth-card h2 {
    font-size: 1.5rem;
  }
}
