body {
  background-color: #fff;
  color: #000;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Header negro - Responsive */
header {
  background-color: #000;
  padding: clamp(8px, 2vw, 12px) 0;
  border-bottom: 2px solid #dc3545;
}

header .container {
  padding: 0 1rem;
}

header .navbar-brand img {
  height: clamp(42px, 7vw, 70px);
  max-width: 100%;
  height: auto;
}

/* Ajuste específico para desktop */
@media (min-width: 992px) {
  header .navbar-brand img {
    height: 65px;
  }
}

/* Contenedor del formulario - Mobile First */
.login-container {
  background-color: #fff;
  padding: clamp(20px, 5vw, 40px);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  margin: clamp(20px, 8vh, 60px) auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

/* En móvil, quitar sombras excesivas */
@media (max-width: 576px) {
  .login-container {
    margin: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
  }
}

.login-container h2 {
  color: #000;
  margin-bottom: clamp(20px, 4vh, 25px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
}

.form-label {
  color: #000;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  margin-bottom: 0.5rem;
}

.form-control {
  background-color: #fff;
  color: #000;
  border: 2px solid #e0e0e0;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  min-height: 48px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #999;
  font-weight: 400;
}

.form-control:hover {
  border-color: #bbb;
}

@media (max-width: 576px) {
  .form-control {
    font-size: 16px; /* Prevenir zoom en iOS */
  }
}

.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
  outline: none;
  background-color: #fff;
}

.btn-login {
  background-color: #dc3545;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  min-height: 48px; /* Target táctil mínimo */
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #c82333;
  color: #fff;
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.link-registro {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  display: inline-block;
  padding: 0.5rem;
  min-height: 44px;
  line-height: 1.5;
}

.link-registro:hover,
.link-registro:focus {
  text-decoration: underline;
  outline: 2px solid #dc3545;
  outline-offset: 2px;
  border-radius: 4px;
}

.text-muted {
  color: #666 !important;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Estilos para el checkbox de "Recuérdame" */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  margin-right: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.form-check-input:hover {
  border-color: #dc3545;
}

.form-check-input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
  outline: none;
}

.form-check-input:checked {
  background-color: #dc3545;
  border-color: #dc3545;
}

.form-check-input:checked::after {
  content: '';
}

.form-check-label {
  color: #000;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}