/* ── Auth page styles ─────────────────────────────────────────────── */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#auth-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 1.5rem;
}

.auth-card {
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--clr-border-strong);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(220,20,60,0.1), var(--shadow-card);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-title {
  font-size: var(--fs-3xl);
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-sub {
  text-align: center;
  color: var(--clr-white-muted);
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-size: var(--fs-md);
  position: relative;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-alt {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--clr-white-muted);
  margin-top: 1.5rem;
}
.auth-alt a { color: var(--clr-crimson); }
.auth-alt a:hover { text-decoration: underline; }

.auth-error {
  background: rgba(255, 40, 40, 0.1);
  border: 1px solid rgba(255, 40, 40, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: var(--fs-sm);
  color: #ff6666;
  margin-bottom: 1rem;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--clr-white-muted);
}

/* Password input wrapper */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-input {
  padding-right: 2.75rem;
}
.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.toggle-pw:hover { opacity: 1; }

/* Password strength */
.pw-strength {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.pw-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}
.pw-bar.weak   { background: #ff4444; width: 30%; }
.pw-bar.medium { background: #ffc107; width: 65%; }
.pw-bar.strong { background: #76ff7a; width: 100%; }
