/* ================================================================
   VIVE I.P.S — login.css
   Estilos para las páginas de autenticación
   ================================================================ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Panel izquierdo — decorativo */
.login-left {
  background: linear-gradient(145deg, var(--azul) 0%, #1e7db8 50%, var(--teal) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 64px;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.login-left-logo {
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.login-left-logo img {
  height: 52px;
  mix-blend-mode: multiply;
  opacity: 0.95;
}
.login-left h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.login-left h2 span { color: #a8f0f4; }
.login-left p {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  font-weight: 500;
}
.login-feature-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Círculos decorativos */
.login-circles span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.login-circles span:nth-child(1) { width:100px;height:100px; top:20%;right:15%; animation: floatY 6s ease-in-out infinite; }
.login-circles span:nth-child(2) { width:50px;height:50px; top:55%;right:8%; animation: floatY 4s ease-in-out infinite 1s; }
.login-circles span:nth-child(3) { width:160px;height:160px; bottom:15%;right:20%; animation: floatY 8s ease-in-out infinite 2s; }

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Panel derecho — formulario */
.login-right {
  background: var(--gris);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 64px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radio-xl);
  padding: 48px 44px;
  box-shadow: var(--sombra-lg);
}
.login-card-header { margin-bottom: 32px; }
.login-card-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--texto);
  margin-bottom: 6px;
}
.login-card-header p {
  font-size: 14px;
  color: var(--texto-suave);
}

.password-wrapper {
  position: relative;
}
.password-wrapper .form-control { padding-right: 46px; }
.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--texto-suave);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  margin-top: -4px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texto-suave);
  cursor: pointer;
}
.remember-me input[type="checkbox"] { accent-color: var(--teal); }
.forgot-link {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}
.forgot-link:hover { color: var(--teal-dark); text-decoration: underline; }

.btn-login-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradiente);
  color: white;
  border: none;
  border-radius: var(--radio-md);
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 6px 18px rgba(27,170,181,0.35);
}
.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(27,170,181,0.45);
}
.btn-login-submit:active { transform: translateY(0); }

.login-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--texto-suave);
}
.login-footer-text a {
  color: var(--teal);
  font-weight: 600;
}
.login-footer-text a:hover { text-decoration: underline; }

.back-home {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--texto-suave);
  transition: color 0.2s;
}
.back-home:hover { color: var(--azul); }

/* Error/alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radio-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── RESPONSIVE LOGIN ── */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 40px 24px; min-height: 100vh; }
  .login-card { padding: 36px 28px; }
}
