/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.4;
}

.auth-box {
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
}

.auth-header { margin-bottom: 36px; }

.auth-logo {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}
.auth-logo span { color: var(--text-muted); font-weight: 400; }

.auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 5px 12px; border-radius: var(--r-full);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-family: var(--font-body);
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
}

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

.auth-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast);
}
.auth-footer a:hover { color: var(--text-primary); }

.auth-error-box {
  background: var(--error-bg);
  border: 1px solid rgba(220,100,100,0.15);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--error);
  display: none;
}
.auth-error-box.visible { display: block; }

.btn-loading {
  position: relative;
  pointer-events: none;
}
.btn-loading .btn-text { opacity: 0; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--bg-base);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

.password-field { position: relative; }
.password-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px;
  transition: color var(--t-fast);
}
.password-toggle:hover { color: var(--text-secondary); }

.strength-meter { margin-top: 6px; }
.strength-bar {
  height: 2px; background: var(--bg-elevated);
  border-radius: 2px; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.strength-label {
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  transition: color 0.3s;
}
