/* =======================
   LOGIN - ESTILOS FINALES
   ======================= */

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ----- Tarjeta de login ----- */
.auth-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  padding: 28px 30px;
  width: 100%;
  max-width: 440px;
}

/* ----- Encabezados ----- */
.header-text {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
  color: #e5e7eb;
}

.sub-text {
  font-size: 15px;
  text-align: center;
  color: #cbd5e1;
  margin: 0 0 18px;
}

/* ----- Labels y inputs ----- */
.form-label {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: #e5e7eb;
  text-align: left;
}

.input-text {
  width: 100%;
  padding: 12px;
  border: 1px solid #374151;
  border-radius: 8px;
  font-size: 15px;
  background: #1f2937;
  color: #f9fafb;
  box-sizing: border-box;
}

.input-text:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ----- Contraseña con botón mostrar ----- */
.pwd-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-pwd {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #111827;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

/* ----- Botón de login ----- */
.login-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.login-btn:hover {
  background: #1e40af;
}

.login-btn:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

/* ----- Textos secundarios ----- */
.muted {
  margin-top: 8px;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
}

.caps-hint {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
}
.caps-hint.on {
  display: block;
}

/* ----- Responsive móvil ----- */
@media (max-width: 480px) {
  .auth-card {
    padding: 20px;
    max-width: 95%;
  }
  .header-text {
    font-size: 22px;
  }
}