/* wp-content/mu-plugins/login-css.css */

/* Estilos y estructura modernos para el login 2025 */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

body.page-id-1058 {
  background: linear-gradient(135deg, #111827, #1f2937);
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Interactive background elements */
.bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  opacity: 0;
  animation: float 8s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

/* Main login container */
#modern-login-container {
  width: 100%;
  max-width: 900px;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  animation: containerReveal 1s ease-out forwards;
}

body.footer-on-bottom #wrapper { width: 100%; }

@keyframes containerReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Left side with illustration */
.login-illustration {
  flex: 1;
  background: url("https://images.unsplash.com/photo-1635776062043-223faf322558?auto=format&fit=crop&q=80") center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px;
}

.illustration-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), rgba(45, 212, 191, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
}

.welcome-text {
  color: white;
  text-align: center;
}

.welcome-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Right side with form */
.login-form-wrapper {
  flex: 1;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.login-form-wrapper h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  font-weight: 600;
}

.login-form-wrapper h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #2dd4bf);
  border-radius: 3px;
}

/* Form fields */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input:focus + .input-icon {
  color: #4f46e5;
}

.input-icon {
  position: absolute;
  right: 16px;
  top: 40px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/* Remember me checkbox */
.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.remember-me label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  color: #e5e7eb;
  user-select: none;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.remember-me label:hover .checkmark {
  background: rgba(255, 255, 255, 0.1);
}

.remember-me input:checked ~ .checkmark {
  background-color: #4f46e5;
  border-color: #4f46e5;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
  display: block;
}

/* Button */
.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #4f46e5, #2dd4bf);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* Forgot password link */
.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: all 0.3s ease;
}

.forgot-password a:hover {
  color: #4f46e5;
}

.forgot-password a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #4f46e5;
  transition: all 0.3s ease;
}

.forgot-password a:hover:after {
  width: 100%;
}

/* Alert messages */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  font-size: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-left: 3px solid #ef4444;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-left: 3px solid #22c55e;
}

/* Recovery modal */
.recovery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recovery-modal.active {
  opacity: 1;
}

.modal-content {
  background: rgba(31, 41, 55, 0.9);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  animation: modalReveal 0.3s ease forwards;
}

@keyframes modalReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-content h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.modal-content h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #2dd4bf);
  border-radius: 3px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Space Grotesk", sans-serif;
}

.recovery-button {
  background: linear-gradient(90deg, #4f46e5, #2dd4bf);
  border: none;
  color: white;
}

.cancel-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.cancel-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive styles */
@media (max-width: 900px) {
  #modern-login-container {
    flex-direction: column;
    max-width: 420px;
  }
  
  .login-illustration {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .login-form-wrapper, 
  .modal-content {
    padding: 30px 20px;
  }
  
  .login-illustration {
    min-height: 150px;
  }
  
  .welcome-text h2 {
    font-size: 24px;
  }
  
  .welcome-text p {
    font-size: 14px;
  }
  
  .login-form-wrapper h2 {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .login-form-wrapper, 
  .modal-content {
    padding: 20px 15px;
  }

  #modern-login-container {
    flex-direction: column;
    max-width: 300px;
    margin-left: 10%;
}

.illustration-overlay {
    padding-top: 60px;
}

  .form-group input {
    padding: 12px;
  }
  
  .login-button {
    padding: 12px;
  }
}
