/* Base Styles */
:root {
  --primary-color: #9747ff; /* Violeta principal */
  --primary-light: #b47eff; /* Violeta más claro */
  --primary-dark: #7b38cc; /* Violeta más oscuro */
  --secondary-color: #6c5ce7; /* Azul-violeta */
  --accent-color: #00e8ff; /* Cian brillante */
  --background-dark: #121212; /* Fondo muy oscuro */
  --background-darker: #0a0a0a; /* Fondo aún más oscuro */
  --card-bg: #1e1e1e; /* Fondo de tarjetas */
  --card-hover: #2a2a2a; /* Fondo de tarjetas al pasar el cursor */
  --text-primary: #ffffff; /* Texto principal */
  --text-secondary: #aaaaaa; /* Texto secundario */
  --border-color: #333333; /* Color de bordes */
  --success-color: #28a745; /* Color de éxito */
  --warning-color: #ffc107; /* Color de advertencia */
  --danger-color: #dc3545; /* Color de peligro */
  --info-color: #17a2b8; /* Color de información */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);
  --transition-speed: 0.3s;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --gradient-primary: linear-gradient(90deg, #6c5ce7, #9747ff); /* Degradado principal */
  --gradient-button: linear-gradient(90deg, #9747ff, #b47eff); /* Degradado para botones */
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-darker);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-light);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

/* Login Container */
.login-container {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Login Background */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--background-darker) 0%, var(--background-dark) 100%);
  z-index: 1;
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.element-1 {
  top: 20%;
  left: 15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.element-2 {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(151, 71, 255, 0.15) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

.element-3 {
  top: 50%;
  right: 30%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(180, 126, 255, 0.15) 0%, transparent 70%);
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Login Content */
.login-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 2.5rem;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1s ease-out;
}

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

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: white;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.login-header p {
  color: var(--text-secondary);
}

/* Login Form Container */
.login-form-container {
  margin-bottom: 2rem;
}

/* Login Tabs */
.login-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active:after {
  transform: scaleX(1);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  background-color: rgba(42, 42, 74, 0.5);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(151, 71, 255, 0.2);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.remember-me,
.terms {
  display: flex;
  align-items: center;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.forgot-password {
  color: var(--text-secondary);
}

.forgot-password:hover {
  color: var(--primary-light);
}

/* Buttons */
.btn-login,
.btn-register {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3);
}

.btn-login:hover,
.btn-register:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(151, 71, 255, 0.4);
}

.btn-login:active,
.btn-register:active {
  transform: translateY(0);
}

/* Social Login */
.social-login {
  margin-top: 2rem;
  text-align: center;
}

.social-login p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  position: relative;
}

.social-login p:before,
.social-login p:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-login p:before {
  left: 0;
}

.social-login p:after {
  right: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.google {
  background: var(--gradient-primary);
}

.github {
  background: linear-gradient(135deg, #333333, #2b2b2b);
}

.twitter {
  background: var(--gradient-button);
}

/* Login Footer */
.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector select {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.language-selector select:focus {
  outline: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .login-content {
    max-width: 90%;
    padding: 1.5rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .social-login p:before,
  .social-login p:after {
    width: 20%;
  }
}

@media (max-width: 480px) {
  .login-header h1 {
    font-size: 1.75rem;
  }

  .login-content {
    padding: 1rem;
  }

  .social-login p:before,
  .social-login p:after {
    width: 15%;
  }
}

