@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
}

.container {
  display: flex;
  width: 100%;
}



/* DERECHA - Caja de login */
.right-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
}

.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.logo {
  width: 100px;
  margin-bottom: 1rem;
}

.login-box h2 {
  margin-bottom: 1rem;
  color: #6A4C93;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #6A4C93;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box button:hover {
  background: #57337A;
}

.register-link {
  margin-top: 1rem;
  font-size: 14px;
}

.register-link a {
  color: #F4A261;
  text-decoration: none;
  font-weight: 600;
}

.error {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}
/* --- Fondo izquierdo mejorado --- */
.left-side {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #6A4C93, #A594F9);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
  overflow: hidden; /* Importante para que no se salgan las animaciones */
}

/* Marca de agua (logo translúcido) */
.background-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('../img/logo.png') no-repeat center;
  background-size: 60%;
  opacity: 0.1;         /* Translucidez */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Texto centrado */
.welcome-text {
  position: relative;
  z-index: 2;
}

.welcome-text h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.welcome-text p {
  font-size: 1rem;
  opacity: 0.95;
}

/* Estrellitas animadas ✨ */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: floatStar 5s linear infinite;
}

.star:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 2s;
}

.star:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-delay: 2s;
}

.star:nth-child(3) {
  top: 80%;
  left: 30%;
  animation-delay: 4s;
}

.star:nth-child(4) {
  top: 55%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes floatStar {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
}

.login-box select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  background-color: white;
}

/* --- INICIO: Estilos para Descuento --- */
.plan-footer { 
    display: flex; 
    flex-direction: row; /* Horizontal */
    justify-content: space-between; /* Lados opuestos */
    align-items: center; /* Centrado vertical */
    text-align: left; /* Alinea el checkbox a la izquierda */
}
.descuento-toggle { 
    font-size: 0.9rem; 
    font-weight: 500; 
}
.descuento-toggle label { cursor: pointer; margin-left: 5px; }

.plan-totales-container {
    text-align: right; /* Mantiene los totales a la derecha */
}
.total-original { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--logo-purple); 
}
.total-descuento {
    font-size: 1.1rem;
    font-weight: 600;
    color: #27ae60; /* Un color verde para el ahorro */
    display: none; /* Oculto por defecto */
}
/* Estilo para la fila de descuento en la tabla */
tr.descuento-row td { 
    color: #e74c3c; /* Rojo */
    font-weight: 600; 
    font-style: italic;
}
/* --- FIN: Estilos para Descuento --- */
