/* Authentication-specific styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, #f1f5f9 100%);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 480px;
  transition: var(--transition);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, #1f2937 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

.auth-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

.auth-tabs {
  display: flex;
  background: var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--card);
  color: var(--text-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.form-group input:hover {
  border-color: var(--muted);
}

.auth-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.auth-btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.auth-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-btn.primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.auth-btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-btn.google {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
  margin-top: 16px;
}

.auth-btn.google:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-btn.google svg {
  flex-shrink: 0;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  background: var(--card);
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.auth-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Status messages */
.status {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--border-light);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.status.error {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.status.success {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Loading animation */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container {
    padding: 16px;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .auth-header p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
}

/* Smooth transitions for form switching */
.auth-form.hidden {
  display: none;
}

.auth-form:not(.hidden) {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Development Login Styles */
.dev-options {
  margin-bottom: 32px;
}

.dev-options h3 {
  margin: 0 0 20px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.dev-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--card);
}

.dev-user-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dev-user-card:active {
  transform: translateY(0);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.user-stats {
  color: var(--muted);
  font-size: 0.8rem;
}

.dev-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.dev-actions .secondary-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.dev-actions .secondary-btn:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Responsive adjustments for dev login */
@media (max-width: 480px) {
  .dev-user-card {
    padding: 12px;
    gap: 12px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .user-name {
    font-size: 0.95rem;
  }
  
  .user-email {
    font-size: 0.85rem;
  }
  
  .user-stats {
    font-size: 0.75rem;
  }
  
  .dev-actions {
    flex-direction: column;
  }
}

/* Email Verification Styles */
.verification-state {
  text-align: center;
  padding: 20px 0;
}

.verification-state.hidden {
  display: none;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-icon, .error-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon svg {
  stroke: #10b981;
}

.error-icon svg {
  stroke: #ef4444;
}

.verification-state h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.verification-state p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.verification-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.auth-btn.secondary {
  background: var(--card);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.auth-btn.secondary:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.status.info {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #7dd3fc;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password-link a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-password-link a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Password Requirements */
.password-requirements {
  margin-top: 6px;
}

.password-requirements small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Auth Footer Links */
.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Responsive adjustments for verification page */
@media (max-width: 480px) {
  .verification-actions {
    gap: 8px;
  }
  
  .verification-state h2 {
    font-size: 1.25rem;
  }
  
  .success-icon svg, .error-icon svg {
    width: 48px;
    height: 48px;
  }
}
