/* ============================================================================
   Auth pages (login / register / reset) — specification 13.6
   A high-quality glass card centred on the cinematic background.
   ============================================================================ */

#bg-canvas {
  position: fixed; inset: 0; z-index: 0; display: block;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-wrap {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%; max-width: 380px;
  background: rgba(8, 10, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 44px;
}

/* Logo: gold square with a star */
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-main); font-size: 14px;
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.4);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(201, 168, 76, 0.3); }
  50%      { box-shadow: 0 0 24px rgba(201, 168, 76, 0.55); }
}
.logo-word { font-family: var(--font-title); font-weight: 700; font-size: 15px; }

.auth-title { font-family: var(--font-title); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.auth-sub { color: var(--text-muted); font-size: 13px; margin: 4px 0 24px; }

.auth-error {
  background: rgba(224, 85, 85, 0.1); border: 1px solid rgba(224, 85, 85, 0.3);
  color: var(--red); font-size: 12.5px; padding: 9px 12px; border-radius: var(--r-small);
  margin-bottom: 14px;
}

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

.pw-wrap { position: relative; }
.pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px;
  display: flex;
}

.auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-foot a { font-weight: 500; }

.consent { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; font-size: 12px; color: var(--text-muted); }
.consent input { width: auto; height: auto; margin-top: 2px; flex-shrink: 0; }

.forgot-link { font-size: 12px; color: var(--text-muted); cursor: pointer; }
.forgot-link:hover { color: var(--gold); }

.legal-foot { position: relative; z-index: 2; text-align: center; padding: 20px; font-size: 12px; }
.legal-foot a { color: var(--text-muted); margin: 0 8px; }
