

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenedor Principal */
.login-container {
  width: 100%;
  max-width: 1200px;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 600px;
}

/* Animación de entrada */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   LADO IZQUIERDO - INFORMACIÓN
   ============================================ */

.login-info {
  background: linear-gradient(135deg, #4b208c 0%, #667eea 100%);
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.login-info::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.info-content {
  position: relative;
  z-index: 1;
}

.logo-section {
  text-align: center;
  margin-bottom: 50px;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.logo-section h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.info-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.info-text p {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Beneficios */
.benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  opacity: 1;
  transform: translateX(10px);
}

.benefit-item i {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 15px;
  font-weight: 500;
}

/* ============================================
   LADO DERECHO - FORMULARIO
   ============================================ */

.login-form-section {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-container {
  max-width: 100%;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0c0c0c;
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* Grupos de Formulario */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0c0c0c;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label i {
  color: #4b208c;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-control:focus {
  outline: none;
  border-color: #4b208c;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(75, 32, 140, 0.1);
}

.form-control::placeholder {
  color: #999;
}

.form-text {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* Grupo de Contraseña */
.password-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-group .form-control {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #4b208c;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s ease;
  z-index: 10;
}

.toggle-password:hover {
  color: #667eea;
}

/* Opciones de Formulario */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 10px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4b208c;
}

.forgot-password {
  font-size: 14px;
  color: #4b208c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Botón Principal */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4b208c 0%, #667eea 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 8px 20px rgba(75, 32, 140, 0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(75, 32, 140, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

/* Divisor */
.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
  color: #999;
  font-size: 13px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  position: relative;
}

/* Redes Sociales */
.social-login {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: white;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  border-color: #EA4335;
  color: #EA4335;
}

.facebook-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.linkedin-btn:hover {
  border-color: #0077B5;
  color: #0077B5;
}

/* Sección de Registro */
.register-section {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.register-link {
  color: #4b208c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #667eea;
  text-decoration: underline;
}

/* Términos */
.terms {
  text-align: center;
  font-size: 12px;
  color: #999;
}

.terms a {
  color: #4b208c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.terms a:hover {
  color: #667eea;
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-info {
    padding: 40px 30px;
    min-height: 300px;
  }

  .login-info::before,
  .login-info::after {
    display: none;
  }

  .logo-section {
    margin-bottom: 30px;
  }

  .logo-section h1 {
    font-size: 22px;
  }

  .info-text h2 {
    font-size: 24px;
  }

  .info-text p {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .benefits {
    gap: 15px;
  }

  .benefit-item i {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .benefit-item span {
    font-size: 13px;
  }

  .login-form-section {
    padding: 40px 30px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 16px; /* Evita zoom en iOS */
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    border-radius: 15px;
  }

  .login-info {
    padding: 30px 20px;
  }

  .login-form-section {
    padding: 30px 20px;
  }

  .logo-section h1 {
    font-size: 18px;
  }

  .info-text h2 {
    font-size: 20px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-subtitle {
    font-size: 13px;
  }

  .social-login {
    gap: 10px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ============================================
   EFECTOS DE CARGA
   ============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.form-control:focus {
  animation: none;
}

/* Efecto de validación */
.form-control.success {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.form-control.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}
