/* Login Page Specific Styles */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 110px; /* Account for fixed navbar */
  position: relative;
  background: #FBFCFF;
}

/* Subtle themed backdrop similar to index hero/banners */
.login-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      700px 400px at 20% -10%,
      rgba(0, 82, 255, 0.06),
      rgba(0, 0, 0, 0) 60%
    ),
    radial-gradient(
      600px 350px at 85% 0%,
      rgba(191, 0, 255, 0.05),
      rgba(0, 0, 0, 0) 58%
    ),
    radial-gradient(
      600px 300px at 50% 115%,
      rgba(154, 154, 165, 0.08),
      rgba(0, 0, 0, 0) 62%
    );
  pointer-events: none;
  z-index: 0;
}

.login-container {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(154, 154, 165, 0.1);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 8px 32px rgba(154, 154, 165, 0.12),
    inset 0 -1px 4px rgba(154, 154, 165, 0.05);
  backdrop-filter: blur(20px);
  z-index: 1;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  font-family: "Geist", sans-serif;
}

.login-header p {
  font-size: 16px;
  color: rgba(154, 154, 165, 0.8);
  margin: 0;
  font-family: "Geist", sans-serif;
}

.login-form {
  margin-bottom: 32px;
}

.login-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  font-family: "Geist", sans-serif;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.google-btn {
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.microsoft-btn {
  background: #0078d4;
  color: #ffffff;
  border: 2px solid #0078d4;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.microsoft-btn:hover {
  background: #106ebe;
  border-color: #106ebe;
  box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
  transform: translateY(-1px);
}

.login-btn svg {
  flex-shrink: 0;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-state p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  font-family: "Geist", sans-serif;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.success-state p {
  color: #10b981;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  font-family: "Geist", sans-serif;
}

.redirect-text {
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 40px 20px;
}

.error-icon {
  width: 60px;
  height: 60px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.error-state p {
  color: #ef4444;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  font-family: "Geist", sans-serif;
}

.retry-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Geist", sans-serif;
}

.retry-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Footer */
.login-footer {
  text-align: center;
  border-top: 1px solid rgba(154, 154, 165, 0.1);
  padding-top: 24px;
}

.login-footer p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  font-family: "Geist", sans-serif;
}

.login-footer a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    padding: 32px 24px;
    margin: 0 16px;
  }
  
  .login-header h1 {
    font-size: 28px;
  }
  
  .login-header p {
    font-size: 15px;
  }
  
  .login-btn {
    height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 16px;
    padding-top: 100px;
  }
  
  .login-container {
    padding: 24px 20px;
  }
  
  .login-header h1 {
    font-size: 24px;
  }
  
  .login-btn {
    height: 48px;
    font-size: 14px;
  }
}

/* Animation for page load */
.login-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects for buttons */
.login-btn:active {
  transform: translateY(0);
}

/* Focus states for accessibility */
.login-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.google-btn:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.microsoft-btn:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
