/* ===== Auth — KukuPDF ===== */
.auth-page { min-height: calc(100vh - var(--header-height)); display: flex; }

.auth-brand {
  flex: 1; background: linear-gradient(135deg, #0D0A1A 0%, #160F2E 40%, #1A0F3D 100%);
  color: white; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--space-3xl); position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(123,47,255,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(57,255,20,0.08) 0%, transparent 50%);
  animation: meshDrift 30s ease-in-out infinite alternate;
}
.auth-brand-content { position: relative; z-index: 1; text-align: center; }
.auth-brand-logo {
  width: 64px; height: 64px; background: rgba(123,47,255,0.2);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; margin: 0 auto var(--space-lg);
  backdrop-filter: blur(10px); box-shadow: var(--glow-purple);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { box-shadow: var(--glow-purple); } 50% { box-shadow: 0 0 30px rgba(57,255,20,0.4), 0 0 80px rgba(123,47,255,0.3); } }
.auth-brand-logo i { width: 32px; height: 32px; color: var(--accent); }
.auth-brand h2 { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: var(--space-xs); }
.auth-brand p { font-size: var(--fs-md); color: var(--text-secondary); margin-bottom: var(--space-xl); }

.auth-floating-cards { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; max-width: 320px; }
.auth-float-card {
  background: rgba(30,21,64,0.8); backdrop-filter: blur(8px);
  border: 1px solid rgba(123,47,255,0.3); padding: 8px 16px;
  border-radius: var(--radius-full); font-size: var(--fs-sm); font-weight: 500;
  animation: gentleFloat 3s ease-in-out infinite;
  display: flex; align-items: center; gap: 6px; color: var(--text-main);
}
.auth-float-card:nth-child(2) { animation-delay: 0.5s; }
.auth-float-card:nth-child(3) { animation-delay: 1s; }
.auth-float-card:nth-child(4) { animation-delay: 1.5s; }
.auth-float-card:nth-child(5) { animation-delay: 2s; }
@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.auth-security-note { margin-top: var(--space-xl); font-size: var(--fs-xs); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.auth-form-section { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-2xl) var(--space-lg); background: var(--bg-base); }
.auth-form-container { width: 100%; max-width: 420px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; }
.auth-form-title { font-size: var(--fs-2xl); margin-bottom: var(--space-xs); }
.auth-form-subtitle { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--space-xl); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.form-input {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(123,47,255,0.25);
  border-radius: var(--radius-md); font-size: var(--fs-base);
  color: var(--text-main); background: rgba(13,10,26,0.8); transition: all var(--transition-fast);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,47,255,0.2); background: var(--bg-base); }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255,82,82,0.15); }
.form-error { font-size: var(--fs-xs); color: var(--error); }
.form-row { display: flex; align-items: center; justify-content: space-between; }
.form-link { font-size: var(--fs-sm); color: var(--primary-light); font-weight: 500; }
.form-link:hover { color: var(--accent); }

.checkbox-group { display: flex; align-items: flex-start; gap: var(--space-sm); }
.checkbox { width: 18px; height: 18px; border: 2px solid rgba(123,47,255,0.5); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); margin-top: 2px; }
.checkbox.checked { background: var(--primary); border-color: var(--primary); color: white; }
.checkbox i { width: 12px; height: 12px; }
.checkbox-label { font-size: var(--fs-sm); color: var(--text-secondary); cursor: pointer; }
.checkbox-label a { color: var(--primary-light); font-weight: 500; }

.auth-divider { display: flex; align-items: center; gap: var(--space-md); margin: var(--space-md) 0; color: var(--text-muted); font-size: var(--fs-sm); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.oauth-buttons { display: flex; gap: var(--space-sm); }
.oauth-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  font-weight: 500; font-size: var(--fs-sm); transition: all var(--transition-fast);
  background: rgba(255,255,255,0.04);
}
.oauth-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.oauth-btn i { width: 18px; height: 18px; }
.oauth-btn-full { padding: 12px; font-size: var(--fs-base); border-radius: var(--radius-md); }

.auth-switch { text-align: center; font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--space-lg); }
.auth-switch a { color: var(--primary-light); font-weight: 600; }
.auth-switch a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-container { border: none; padding: var(--space-xl); }
}
