/**
 * Authentication Pages Styling
 * 
 * Styles for signup, login, and email verification pages
 * Matches the dark glass aesthetic with glowing edges
 */

/* ============================================================================
   Hero Brand Section - Layout only, brand styling comes from base.css
   ============================================================================ */

.auth-hero-brand-section {
  text-align: center;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

/* Override hero-brand-title padding for auth pages */
.auth-hero-brand-section .hero-brand-title {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 3.5rem;
}

/* Override hero-brand-tagline spacing for auth pages */
.auth-hero-brand-section .hero-brand-tagline {
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

/* Override brand-dash size for auth pages to match explore */
.auth-hero-brand-section .brand-dash {
  font-size: 3rem;
}

/* ============================================================================
   Auth Container
   ============================================================================ */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 300px);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  /* Glassmorphism styling matching index headers */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.2s ease;
}

.auth-card:hover {
  border-color: rgba(0, 168, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.15);
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  text-align: center;
  color: var(--color-text-primary);
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.2);
}

.auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   Auth Form
   ============================================================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color, #3498db);
}

.form-group input.error {
  border-color: var(--error-color, #e74c3c);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
}

.form-error {
  font-size: 0.85rem;
  color: var(--error-color, #e74c3c);
  min-height: 1.2rem;
}

.form-success {
  font-size: 0.9rem;
  color: var(--success-color, #27ae60);
  padding: 0.75rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 4px;
  text-align: center;
  min-height: 1.2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

.form-group-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn-primary,
.btn-secondary,
.btn-oauth {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-slow);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

/* Primary button - matches Create Index button style */
.btn-primary {
  background: rgba(var(--color-primary-rgb), 0.15);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  width: 100%;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(var(--color-primary-rgb), 0.25);
  box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.6), 0 0 60px rgba(var(--color-primary-rgb), 0.3);
  transform: scale(1.02);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

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

.btn-secondary {
  background: var(--secondary-color, #95a5a6);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover, #7f8c8d);
}

.btn-oauth {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.btn-oauth:hover:not(:disabled) {
  background: #f8f9fa;
}

.btn-oauth:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color, #3498db);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ============================================================================
   Auth Footer
   ============================================================================ */

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-footer p {
  margin: 0.5rem 0;
}

.auth-footer a {
  color: var(--primary-color, #3498db);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.link-secondary {
  color: var(--text-secondary, #666);
  font-size: 0.85rem;
}

/* ============================================================================
   Auth Divider
   ============================================================================ */

.auth-divider {
  margin: 1.5rem 0;
  text-align: center;
  position: relative;
}

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

.auth-divider span {
  position: relative;
  background: var(--card-background-color, white);
  padding: 0 1rem;
  color: var(--text-secondary, #666);
  font-size: 0.85rem;
}

/* ============================================================================
   Verification States
   ============================================================================ */

.verify-state {
  text-align: center;
  padding: 2rem 1rem;
}

.verify-state h1 {
  margin-bottom: 1rem;
}

.verify-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary, #666);
  padding: 2rem;
  font-size: 0.95rem;
}

.error-state {
  text-align: center;
  padding: 3rem 2rem;
}

.error-state h2 {
  color: var(--error-color, #e74c3c);
  margin-bottom: 1rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .auth-hero-brand-section .brand-dash {
    font-size: 2rem;
  }
  
  .auth-hero-brand-section .hero-brand-tagline {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .auth-hero-brand-section .brand-dash {
    font-size: 1.75rem;
  }
  
  .auth-hero-brand-section .hero-brand-tagline {
    font-size: 0.8rem;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-card h1 {
    font-size: 1.5rem;
  }
  
  .form-group-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

