body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: #ffffff;
  padding: 40px 35px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
}

.login-card h1 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  color: #333;
}

.alert.error {
  background-color: #ffd6d6;
  border: 1px solid #ff9c9c;
  color: #a10000;
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  color: #222;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.login-form input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.btn {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.register-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ===== Alineado exacto del checkbox ===== */
.checkbox-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px
}

.checkbox-line label {
  font-weight: bold;
  font-size: 14px;
  color: #222;
  line-height: 1;
}

.checkbox-line input[type="checkbox"] {
  width: auto;          
  margin: 0;
  transform: translateY(1px);
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
