/* Auth pages (login, register) */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
}

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

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(64,150,255,0.2), rgba(100,80,255,0.2));
  border: 1px solid rgba(64,150,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.auth-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.auth-subtitle a {
  color: var(--accent-blue);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.auth-subtitle a:hover { opacity: 0.8; }

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

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.auth-footer a {
  color: var(--accent-blue);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.auth-footer a:hover { opacity: 0.8; }

.auth-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.forgot-link {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover { color: var(--accent-blue); }

/* Success animation overlay */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.3s ease forwards;
}

.success-circle {
  width: 120px;
  height: 120px;
  animation: successPop 0.5s var(--ease-spring) forwards;
}

.success-circle svg {
  width: 100%;
  height: 100%;
}

.success-circle-path {
  stroke: var(--accent-green);
  stroke-width: 3;
  fill: rgba(52,199,89,0.12);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: circleDraw 0.6s var(--ease-out-expo) 0.2s forwards;
}

.success-check-path {
  stroke: var(--accent-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: checkmarkDraw 0.5s var(--ease-out-expo) 0.6s forwards;
}

/* Confetti canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
}
