:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --primary-light: #818cf8;
  --secondary: #764ba2;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  margin-top: 72px;
}

/* === Background con animaciones mejorado === */
.auth-bg {
  position: fixed;
  inset: 72px 0 0 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(129, 140, 248, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  animation: float 20s ease-in-out infinite;
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.1);
}

.shape-1 {
  width: 450px;
  height: 450px;
  top: -15%;
  left: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  animation-delay: 0s;
  animation-duration: 25s;
}

.shape-2 {
  width: 350px;
  height: 350px;
  top: 45%;
  right: -12%;
  background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  animation-delay: 5s;
  animation-duration: 20s;
}

.shape-3 {
  width: 280px;
  height: 280px;
  bottom: 15%;
  left: 25%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  animation-delay: 10s;
  animation-duration: 30s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(40px, -40px) rotate(120deg) scale(1.05);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg) scale(0.95);
  }
}

/* Particulas musicales decorativas */
.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(3px 3px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(3px 3px at 30% 80%, rgba(255, 255, 255, 0.1), transparent);
  background-size: 300px 300px, 400px 400px, 350px 350px, 280px 280px, 320px 320px, 360px 360px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 50px, 150px 180px;
  animation: sparkle 60s linear infinite;
}

@keyframes sparkle {
  0% {
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 50px, 150px 180px;
  }
  100% {
    background-position: 300px 300px, 340px 360px, 430px 570px, 370px 400px, 500px 350px, 450px 480px;
  }
}

/* === Panel de Bienvenida === */
.auth-welcome-panel {
  padding: 3rem;
  position: relative;
}

.welcome-content {
  max-width: 540px;
  margin: 0 auto;
  color: white;
}

.welcome-icon {
  width: 95px;
  height: 95px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.welcome-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.auth-page .brand-highlight {
  font-weight:700
}

.welcome-text {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 3rem;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.auth-page .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.auth-page .feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
}

.auth-page .feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.auth-page .feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-page .feature-text strong {
  font-size: 1rem;
  font-weight: 600;
}

.auth-page .feature-text span {
  font-size: 0.875rem;
  opacity: 0.85;
}

.welcome-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-page .stat-item {
  text-align: center;
}

.auth-page .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.auth-page .stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

.auth-page .stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* === Formulario === */
.auth-form-wrapper {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Alertas */
.auth-alert {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.auth-page .alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--danger);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page .alert-content {
  flex: 1;
}

.auth-page .alert-content strong {
  display: block;
  color: #991b1b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-page .alert-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #b91c1c;
}

.auth-page .alert-content li {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Form Groups */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-page .form-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-page .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-page .form-label i {
  font-size: 0.875rem;
  color: var(--primary);
}

.auth-page .forgot-link {
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.auth-page .forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.auth-page .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-lighter);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.auth-page .form-input::placeholder {
  color: var(--text-muted);
}

.auth-page .form-input:focus {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  font-size: 1rem;
}

.password-toggle:hover {
  color: var(--primary);
}

/* Botón Principal */
.auth-page .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-page .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
  opacity: 0;
  transition: var(--transition);
}

.auth-page .btn-primary:hover::before {
  opacity: 1;
}

.auth-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-page .btn-primary:active {
  transform: translateY(0);
}

.auth-page .btn-text,
.auth-page .btn-icon {
  position: relative;
  z-index: 1;
}

.auth-page .btn-icon {
  transition: transform 0.3s ease;
}

.auth-page .btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* OAuth Button */
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-oauth:hover {
  background: var(--bg-lighter);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.oauth-icon {
  width: 20px;
  height: 20px;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.auth-footer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.security-badge i {
  color: var(--success);
}

/* === Responsive === */
@media (max-width: 992px) {
  .auth-shell {
    margin-top: 60px;
    padding: 1.5rem 0;
  }
  
  .welcome-title {
    font-size: 2.5rem;
  }
  
  .auth-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .auth-form-wrapper {
    padding: 1rem;
  }
  
  .auth-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .form-input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .shape {
    display: none;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-subtitle {
    font-size: 0.875rem;
  }
}

.welcome-header .welcome-icon i {
    font-size: 60px;
    color: #fff;
    opacity: 0.9;
}

.welcome-title {
    font-size: 2.7rem;
    line-height: 1.15;
    font-weight: 700;
    margin-left: 10px!important;
}
