/* =========================================================
   🔐 LMS PERÚ PRO - AUTH UI (LOGIN)
   Compatible con estructura existente
   ========================================================= */

/* =========================
   🌐 BACKGROUND
========================= */
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
  height: auto;
  background-image: url('/eva-elite/system/img/morena.jpg');
  background-size: cover;      /* Ajusta la imagen al div */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat;
}

/* =========================
   🧱 CONTAINER
========================= */
.auth-container {
  display: flex;
  align-items: flex-start;   /* arriba */
  justify-content: flex-start; /* izquierda */
  padding: 20px;
}

/* =========================
   🎴 CARD LOGIN
========================= */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  border-top: 4px solid #d32f2f;
  animation: fadeIn 0.4s ease;
}

/* =========================
   🧠 TITLE
========================= */
.auth-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #d32f2f;
}

/* =========================
   🧾 INPUTS
========================= */
.auth-card input {
  width: 100%;
  padding: 12px 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.auth-card input:focus {
  border-color: #d32f2f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

/* =========================
   🔘 BUTTON
========================= */
.auth-card button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 5px;
}

.auth-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(211,47,47,0.25);
}

/* =========================
   📢 MESSAGE
========================= */
#msg {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  color: #6b7280;
}

/* error state (puedes usar class desde JS) */
#msg.error {
  color: #b71c1c;
}

#msg.success {
  color: #2e7d32;
}

/* =========================
   ✨ ANIMATION
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 480px) {
  .auth-card {
    padding: 22px;
  }
}