/* ========================================
   LILLIPIX - Modern Auth Pages
   State of the Art Login & Register
======================================== */

/* Auth Section - Fullscreen */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #f5f7fa 0%,
    #ffffff 50%,
    #f0f4f8 100%
  );
}

/* Auth Background Shapes */
.auth-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.auth-shapes .shape {
  position: absolute;
  opacity: 0.06;
  animation: authFloat 8s ease-in-out infinite;
}

.auth-shapes .shape-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.auth-shapes .shape-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.auth-shapes .shape-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes authFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  50% { 
    transform: translateY(-30px) rotate(10deg); 
  }
}

/* Auth Card - Center */
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.06);
  padding: var(--space-12) var(--space-8);
  animation: authCardSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes authCardSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  text-decoration: none;
  transition: transform var(--transition-base);
}

.auth-logo:hover {
  transform: scale(1.05);
}

.auth-logo-img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
}

.auth-logo svg {
  filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.3));
}

.auth-logo span {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
  font-family: var(--font-display);
}

.auth-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin: 0;
}

/* Auth Form */
.auth-form {
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-label svg {
  width: 18px;
  height: 18px;
  color: var(--gray-500);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--gray-900);
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

/* Form Hints */
.form-hint {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Form Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox label a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

/* Auth Benefits */
.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: var(--space-6) 0;
}

.benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
}

.benefit svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--success);
}

/* Alert Messages */
.alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-6);
  font-weight: 500;
  font-size: 0.95rem;
}

.alert svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Auth Actions */
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-actions .btn-learn {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-size: 1.05rem;
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: var(--space-8) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 40px);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gray-300),
    transparent
  );
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  display: inline-block;
  padding: 0 var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.95);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
}

.auth-footer p {
  color: var(--gray-600);
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}

.auth-footer .btn-learn {
  width: 100%;
  justify-content: center;
}

/* Auth Success State */
.auth-success {
  text-align: center;
  padding: var(--space-8) 0;
}

.auth-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

.auth-success h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.auth-success p {
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

/* Responsive */
@media (max-width: 640px) {
  .auth-section {
    padding: var(--space-6) var(--space-4);
  }
  
  .auth-card {
    padding: var(--space-8) var(--space-6);
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .form-input {
    padding: var(--space-3) var(--space-4);
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .auth-section {
    background: linear-gradient(135deg, 
      #1a1f2e 0%,
      #0f1419 50%,
      #1a1f2e 100%
    );
  }
  
  .auth-card {
    background: rgba(30, 41, 59, 0.95);
  }
  
  .auth-header h1 {
    color: var(--white);
  }
  
  .auth-header p {
    color: var(--gray-400);
  }
  
  .form-label {
    color: var(--gray-300);
  }
  
  .form-input {
    background: rgba(15, 23, 42, 0.5);
    border-color: var(--gray-700);
    color: var(--white);
  }
  
  .form-input::placeholder {
    color: var(--gray-600);
  }
}
