/* ======== ESTILOS GENERALES ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #e28f13, #0300c5);
  color: #f5f5f5;
}

/* ======== CONTENEDOR LOGIN ======== */
.login-container {
  background: #001d9e;
  padding: 2.8rem;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 380px;
  text-align: center;
  transition: all 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ======== INPUT ======== */
input[type="password"] {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  background: #000000;
  color: #f5f5f5;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.3rem;
}

input[type="password"]:focus {
  background: #333;
  box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.829);
}

/* ======== BOTÓN ======== */
button.entrar {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #ff7b00, #ff5500);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button.entrar:hover {
  background: linear-gradient(135deg, #ff8e2a, #ff6a1a);
  transform: scale(1.02);
}

/* ======== VOLVER ======== */
a.volver {
  display: inline-block;
  margin-top: 1.3rem;
  color: #ff7b00;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

a.volver:hover {
  color: #ff9d42;
}

/* ======== ERROR ======== */
.error {
  display: none;
  color: #ff4c4c;
  background: rgba(255, 76, 76, 0.1);
  border: 1px solid rgba(255, 76, 76, 0.3);
  border-radius: 8px;
  padding: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease-in;
}

/* ======== ANIMACIÓN ======== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 420px) {
  .login-container {
    padding: 2rem;
    margin: 1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
