/**
 * Estilos para las páginas de autenticación
 * Versión: 1.0.0
 * Autor: Omen Bot Team
 */

/* ======================================
   1. VARIABLES Y CONFIGURACIÓN
   ====================================== */
:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --dark: #111827;
  --darker: #0F172A;
  --medium-dark: #1F2937;
  --light: #F9FAFB;
  --border-radius: 16px;
  --card-border-radius: 24px;
  --accent: #10B981;
  --accent-dark: #059669;
  --danger: #EF4444;
  --warning: #F59E0B;
}

/* ======================================
   2. ESTILOS BASE
   ====================================== */
body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at top right, #4F46E5, #7C3AED, #2D3748);
  color: var(--light);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ======================================
   3. FONDO ANIMADO
   ====================================== */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-animation span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.bg-animation span:nth-child(1) {
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 15s;
}

.bg-animation span:nth-child(2) {
  left: 20%;
  width: 30px;
  height: 30px;
  animation-delay: 2s;
  animation-duration: 20s;
}

.bg-animation span:nth-child(3) {
  left: 35%;
  width: 100px;
  height: 100px;
  animation-delay: 4s;
  animation-duration: 12s;
}

.bg-animation span:nth-child(4) {
  left: 50%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bg-animation span:nth-child(5) {
  left: 65%;
  width: 40px;
  height: 40px;
  animation-delay: 0s;
  animation-duration: 15s;
}

.bg-animation span:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  animation-duration: 12s;
}

.bg-animation span:nth-child(7) {
  left: 90%;
  width: 50px;
  height: 50px;
  animation-delay: 7s;
  animation-duration: 18s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
    border-radius: 50%;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

/* ======================================
   4. CONTENEDOR DE LOGIN
   ====================================== */
.login-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  border-radius: var(--card-border-radius);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ======================================
   5. PANEL IZQUIERDO
   ====================================== */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(79, 70, 229, 0.8) 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  display: none;
}

.login-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1964&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

.login-left-content {
  position: relative;
  z-index: 1;
}

.login-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.login-left p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-list li i {
  color: var(--accent);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* ======================================
   6. PANEL DERECHO
   ====================================== */
.login-right {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.login-logo img {
  width: 100%;
  border-radius: 50%;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.login-logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ======================================
   7. FORMULARIO DE LOGIN
   ====================================== */
.login-body {
  width: 100%;
}

.login-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ff6b6b;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--danger);
}

.login-error i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.login-form {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.form-label i {
  margin-right: 0.5rem;
  color: var(--primary-light);
}

.form-control {
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: white;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:focus {
  background-color: rgba(31, 41, 55, 1);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25);
  color: white;
}

.input-group-text {
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary-light);
}

.form-check-input {
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 1.1rem;
  height: 1.1rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding-left: 0.25rem;
}

.form-floating {
  margin-bottom: 1.25rem;
}

.form-floating > .form-control {
  padding: 1.5rem 1rem 0.5rem;
  height: calc(3.5rem + 2px);
}

.form-floating > label {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-light);
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* ======================================
   8. BOTONES DE LOGIN
   ====================================== */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.login-btn-discord {
  background-color: #5865F2;
  color: white;
}

.login-btn-discord:hover {
  background-color: #4752c4;
  color: white;
}

.login-btn-google {
  background-color: #EA4335;
  color: white;
}

.login-btn-google:hover {
  background-color: #d33426;
  color: white;
}

.login-btn-github {
  background-color: #333;
  color: white;
}

.login-btn-github:hover {
  background-color: #222;
  color: white;
}


.login-btn-x {
  background-color: #333;
  color: white;
}

.login-btn-x.hover {
  background-color: #222;
  color: white;
}

.login-btn-x.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-btn-spotify {
  background-color: #1DB954;
  color: white;
}

.login-btn-spotify:hover {
  background-color: #1db954;
  color: white;
}

.login-btn-twitch {
  background-color: #6441A5;
  color: white;
}

.login-btn-twitch:hover {
  background-color: #6441A5;
  color: white;
}

.login-btn-youtube {
  background-color: #FF0000;
  color: white;
}

.login-btn-youtube:hover {
  background-color: #FF0000;
  color: white;
}

.login-btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.login-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transition: all 0.6s ease;
  z-index: -1;
}

.login-btn-primary:hover::before {
  left: 100%;
}

.login-btn-primary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* ======================================
   9. ELEMENTOS ADICIONALES
   ====================================== */
.login-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.login-separator::before,
.login-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-separator::before {
  margin-right: 1rem;
}

.login-separator::after {
  margin-left: 1rem;
}

.login-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.login-footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-footer a:hover {
  color: white;
  text-decoration: underline;
}

.back-to-home {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.back-to-home i {
  margin-right: 0.5rem;
}

.back-to-home:hover {
  color: white;
  transform: translateX(-5px);
  background: rgba(31, 41, 55, 0.8);
}

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-login a {
  flex: 1;
  text-decoration: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-login a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.social-login .login-btn i {
  font-size: 1.2rem;
}

.social-login .login-btn span {
  font-weight: 500;
}

.password-toggle {
  cursor: pointer;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: white;
}

/* ======================================
   10. RESPONSIVE
   ====================================== */
@media (min-width: 992px) {
  .login-left {
    display: flex;
  }
}

@media (max-width: 991px) {
  .login-wrapper {
    max-width: 500px;
  }
}

@media (max-width: 576px) {
  .login-wrapper {
    border-radius: 0;
    height: 100vh;
  }

  .login-container {
    padding: 0;
  }

  .login-right {
    padding: 2rem;
  }

  .back-to-home {
    top: 1rem;
    left: 1rem;
  }

  .social-login {
    flex-direction: column;
  }
}