/* Common Authentication Pages Styles */

/* Hide navbar and header for auth pages */
nav, .navbar, header {
  display: none !important;
}

/* Remove padding from base template */
body {
  margin: 0;
  padding: 0;
}

.content-section, main, .container {
  padding: 0 !important;
  margin: 0 !important;
}

/* CSS Variables following design system */
:root {
  /* Primary Colors */
  --primary-purple: #9333ea;
  --primary-purple-dark: #7c3aed;
  --primary-purple-medium: #a78bfa;
  --primary-purple-light: #c084fc;

  /* Background Colors */
  --bg-gradient-1: #f3e7ff;
  --bg-gradient-2: #e7f0ff;
  --bg-gradient-3: #ede9fe;

  /* Light Backgrounds */
  --bg-light-purple: #e9d5ff;
  --bg-light-lavender: #f3e8ff;
  --bg-light-periwinkle: #f0e7ff;

  /* Accent Colors */
  --accent-blue: #93c5fd;
  --accent-lavender: #d8b4fe;

  /* Text Colors */
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light-gray: #9ca3af;

  /* Border Colors */
  --border-gray: #d1d5db;
  --border-light: #e5e7eb;
  --border-purple: #e9d5ff;

  /* Shadow Colors */
  --shadow-purple: rgba(147, 51, 234, 0.2);
  --shadow-purple-light: rgba(147, 51, 234, 0.1);
}

/* Main container with gradient background */
.auth-container {
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated background blobs */
.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* Auth card */
.auth-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 480px;
  margin: 24px;
  position: relative;
  z-index: 10;
}

/* Logo section */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo h2 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-purple-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* Auth title */
.auth-title {
  text-align: center;
  margin-bottom: 40px;
}

.auth-title h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px 0;
}

.auth-title p {
  color: var(--text-gray);
  font-size: 16px;
  margin: 0;
}

/* Form styles */
.auth-form {
  margin: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-gray);
  border-radius: 9999px;
  transition: all 0.3s;
  font-size: 16px;
  color: var(--text-dark);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-purple);
  background: white;
  box-shadow: 0 0 0 3px var(--shadow-purple-light);
}

.form-input::placeholder {
  color: var(--text-light-gray);
}

/* Error messages */
.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-icon {
  width: 14px;
  height: 14px;
}

/* Submit button */
.submit-button {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-purple-dark));
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 15px -3px var(--shadow-purple);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px var(--shadow-purple);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Close button */
.close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.close-button:hover {
  background: white;
  border-color: var(--border-gray);
  transform: scale(1.05);
}

.close-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-gray);
  stroke-width: 2;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
  .auth-card {
    padding: 32px 24px;
    margin: 16px;
  }

  .auth-title h1 {
    font-size: 28px;
  }

  .close-button {
    top: 16px;
    right: 16px;
  }
}
