/* Login / registration pages */
.auth-body { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; }
.auth-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.auth-logo img { filter: drop-shadow(0 0 22px rgba(155, 92, 255, .8)); animation: logo-float 5s ease-in-out infinite; }
.auth-logo .logo-text { font-size: clamp(28px, 8vw, 40px); align-items: center; }
@keyframes logo-float { 50% { transform: translateY(-8px) rotate(3deg); } }

.auth-card { width: 100%; padding: 28px 24px; position: relative; }
.auth-card::before {                                   /* animated RGB border */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--pink), var(--gold), var(--cyan), var(--violet), var(--pink));
  background-size: 300% 300%; animation: rgb-flow 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes rgb-flow { to { background-position: 300% 0; } }
.auth-card h2 { font-size: 24px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); margin-bottom: 20px; font-size: 14px; }
.auth-error {
  background: rgba(255, 77, 109, .14); border: 1px solid rgba(255, 77, 109, .5); color: #ffc2cd;
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 14px;
}
.key-input { text-transform: uppercase; letter-spacing: .4em; font-weight: 700; text-align: center; font-size: 18px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-note { font-size: 12px; color: var(--muted); text-align: center; opacity: .8; }
