/* ========================= */
/* LOGIN BODY */
/* ========================= */
.login-body {
  display: block;
  height: 100vh;
  overflow: hidden;
}

/* ========================= */
/* FONDO LOGIN */
/* ========================= */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url("../assets/images/Fondo-Login.png") no-repeat center center/cover;

  filter: blur(2px);
  z-index: -1;
}

/* ========================= */
/* CONTENEDOR */
/* ========================= */
.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

/* ========================= */
/* CARD */
/* ========================= */
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.55);
  padding: 35px 30px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  z-index: 1;
}

/* ========================= */
/* LOGO */
/* ========================= */
.logo-container {
  margin-bottom: 10px;
}

.logo-container img {
  width: 1000px;
  max-width: 100%;
}

/* ========================= */
/* TITULO */
/* ========================= */
.login-card h2 {
  margin-bottom: 20px;
  color: #333;
}

/* ========================= */
/* LABELS */
/* ========================= */
.login-card label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  text-align: left;
}

/* ========================= */
/* INPUTS */
/* ========================= */
.login-card input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.2s;
}

.login-card input:focus {
  border-color: #2a5298;
  box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.15);
}

/* ========================= */
/* PASSWORD */
/* ========================= */
.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  cursor: pointer;
  opacity: 0.7;
}

.eye-icon:hover {
  opacity: 1;
}

/* ========================= */
/* FORGOT PASSWORD */
/* ========================= */
.forgot {
  margin-top: 10px;
  text-align: right;
}

.forgot a {
  font-size: 13px;
  color: #2a5298;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

/* ========================= */
/* BOTÓN */
/* ========================= */
.login-card button {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #2a5298;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.login-card button:hover {
  background: #1e3c72;
}


/* ========================= */
/* MODAL OVERLAY */
/* ========================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);

  z-index: 999999;

  opacity: 1;
  transition: opacity 0.25s ease;
}

/* oculto */
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ========================= */
/* CONTENIDO */
/* ========================= */
.login-body .modal-content {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 16px;

  width: 90%;
  max-width: 380px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);

  text-align: center;

  transform: scale(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* animación cuando está oculto */
.hidden .modal-content {
  transform: scale(0.92);
  opacity: 0;
}

/* ========================= */
/* TEXTO */
/* ========================= */
.modal-content h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.modal-content p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* ========================= */
/* INPUTS */
/* ========================= */
.modal-content input {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;

  padding: 0 12px;

  border-radius: 10px;
  border: 1px solid #d1d5db;

  font-size: 14px;

  transition: all 0.2s ease;
}

/* focus elegante */
.modal-content input:focus {
  outline: none;
  border-color: #2f56a6;
  box-shadow: 0 0 0 3px rgba(47, 86, 166, 0.15);
}

/* ========================= */
/* BOTÓN */
/* ========================= */
.modal-content button {
  width: 100%;
  height: 46px;

  margin-top: 6px;

  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #2f56a6, #1e3a8a);
  color: #fff;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* hover */
.modal-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 86, 166, 0.35);
}

/* click */
.modal-content button:active {
  transform: scale(0.98);
}


/* ========================= */
/* INPUT CON ICONO */
/* ========================= */
.input-group {
  position: relative;
  margin-bottom: 12px;
}

.input-group input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 12px; /* espacio para el icono */
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* icono ojo */
.input-group .eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
}

.input-group .eye:hover {
  opacity: 1;
}

/* ========================= */
/* VALIDACIÓN */
/* ========================= */

/* error */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.15);
}

/* success */
.input-success {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}


/* =========================
   ERROR LOGIN
========================= */
.login-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

/* reutilizamos hidden */
.hidden {
  display: none;
}

/* input en rojo */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.15);
}