* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #00faba, #492387);
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrapper {
  display: flex;
  width: 90%;
  max-width: 1100px;
  height: 600px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* IZQUIERDA */
.login-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: white;
  background: linear-gradient(135deg, #0a1f3c, #1a2f6d);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
}

.login-left img.mmrun-logo {
  max-width: 340px;
  height: auto;
  margin-bottom: 2rem;
}

.login-left .description-box {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 320px;
}

.login-left .description-box strong {
  font-weight: bold;
}

/* DERECHA */
.login-right {
  flex: 1;
  background: #fff;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
}

.form-box {
  width: 100%;
  max-width: 420px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.password-wrapper {
  position: relative;
  width: 100%;
  height: 48px;
  margin-bottom: 1rem;
}

.password-wrapper input {
  width: 100%;
  height: 100%;
  padding: 0 40px 0 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  line-height: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
}

button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  background: #5247b9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background: #3f3aa3;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.no-display {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.help-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.help-text a {
  color: #5247b9;
  text-decoration: none;
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    height: auto;
    margin: 2rem 0;
  }

  .login-left,
  .login-right {
    flex: none;
    width: 100%;
    padding: 2rem;
  }

  .login-left img.mmrun-logo {
    max-width: 180px;
  }
}

.back-to-site {
  margin-top: 1rem;
  text-align: center;
}

.back-to-site a {
  font-size: 0.9rem;
  color: #e3e2eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-site a:hover {
  color: #c2e2de;
  text-decoration: none;
}

.btn-volver {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(to right, #1bac88, #3b3291);
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.btn-volver:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #30d8b2, #5c51d6);
  text-decoration: none;
}

.btn-volver svg {
  margin-right: 5px;
  fill: currentColor;
  width: 18px;
  height: 18px;
  text-decoration: none;
}

/* Estilo general del ícono de ojo */
.toggle-password svg {
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Efecto de parpadeo */
.eye-blink {
  transform: scaleY(0.1);
}

/* Efecto al abrir el ojo */
.eye-open {
  transform: scaleY(1);
}
