/* Register Page Styles */

:root {
  --primary-blue: #2563eb;
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-400: #60a5fa;
  --primary-200: #bfdbfe;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;
  
  --emerald-base: #10b981;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  
  --amber-base: #f59e0b;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fcd34d;
  
  --rose-600: #e11d48;
  
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
}

/* Hero Section */
.register-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fffbeb 100%);
  padding: 3rem 1rem;
}

.register-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.register-hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.register-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
}

/* Header Section */
.register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  color: white;
  font-size: 1.75rem;
  transition: transform 0.3s ease;
}

.register-header:hover .register-icon {
  transform: scale(1.1) rotate(-5deg);
}

.register-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.5rem;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.register-header p {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* Card Container */
.register-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.register-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Features Section */
.register-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .register-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--neutral-50);
  border-radius: 12px;
  border-left: 3px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--primary-50);
  border-left-color: var(--primary-600);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  font-size: 1.1rem;
}

.feature-text {
  font-size: 0.85rem;
  color: var(--neutral-700);
  font-weight: 500;
}

/* Redirect Message */
.redirect-message {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--emerald-100) 100%);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.redirect-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 0.5rem;
}

.redirect-text {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.5;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-top: 1rem;
  border: 3px solid var(--primary-100);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Sign In Link */
.signin-link {
  text-align: center;
  margin-bottom: 1rem;
}

.signin-link p {
  font-size: 0.9rem;
  color: var(--neutral-600);
  margin: 0;
}

.signin-link a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.signin-link a:hover {
  color: var(--primary-500);
  border-bottom-color: var(--primary-600);
}

/* Trust Indicators */
.trust-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-200);
}

.trust-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--neutral-50);
  transition: all 0.3s ease;
}

.trust-item:hover {
  background: var(--emerald-50);
}

.trust-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--emerald-600);
}

.trust-label {
  font-size: 0.7rem;
  color: var(--neutral-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Testimonial Section */
.register-testimonial {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-50) 100%);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--neutral-700);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-star {
  color: var(--amber-base);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .register-hero {
    padding: 2rem 1rem;
  }
  
  .register-card {
    padding: 1.5rem;
  }
  
  .register-header h1 {
    font-size: 1.5rem;
  }
  
  .register-features {
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.75rem;
  }
  
  .trust-section {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .register-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2d1b1b 100%);
  }
  
  .register-card {
    background: rgba(45, 45, 60, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .register-header h1 {
    color: #f9fafb;
  }
  
  .register-header p {
    color: #d1d5db;
  }
  
  .feature-item {
    background: #3a3a4f;
    border-left-color: var(--primary-500);
  }
  
  .feature-item:hover {
    background: #4a4a6a;
  }
  
  .feature-text {
    color: #e5e7eb;
  }
  
  .redirect-message {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-color: rgba(37, 99, 235, 0.3);
  }
  
  .redirect-title {
    color: var(--primary-400);
  }
  
  .redirect-text {
    color: #d1d5db;
  }
  
  .signin-link p {
    color: #d1d5db;
  }
  
  .trust-item {
    background: #3a3a4f;
  }
  
  .trust-item:hover {
    background: #4a4a6a;
  }
  
  .trust-label {
    color: #9ca3af;
  }
  
  .register-testimonial {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(45, 45, 60, 0.8) 100%);
    border-color: rgba(37, 99, 235, 0.3);
  }
  
  .testimonial-text {
    color: #e5e7eb;
  }
  
  .testimonial-author {
    color: var(--primary-400);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .register-icon {
    transition: none;
  }
  
  .register-card {
    transition: none;
  }
  
  .feature-item {
    transition: none;
  }
  
  .signin-link a {
    transition: none;
  }
  
  .trust-item {
    transition: none;
  }
  
  .register-hero::before,
  .register-hero::after {
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
  }
}
