/* ── AUTH ── */
#page-login, #page-register {
  align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(173, 98, 255, 0.12) 0%, transparent 50%), var(--bg);
  position: relative;
}
.auth-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.3; pointer-events: none;
}
.auth-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 2px; padding: 48px 44px; width: 400px;
  position: relative; z-index: 1;
  box-shadow: 0 0 80px #00000088, 0 0 0 1px rgba(173, 98, 255, 0.12);
}
.auth-logo {
  font-family: 'Playfair Display', serif; font-size: 13px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.auth-title {
  font-family: 'Playfair Display', serif; font-size: 32px;
  font-weight: 900; margin-bottom: 8px; line-height: 1.1;
}
.auth-subtitle { font-size: 13px; color: var(--text2); margin-bottom: 36px; line-height: 1.6; }
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 8px;
}
.field-group input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
  border-radius: 1px; outline: none; transition: border-color 0.2s;
}
.field-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(173, 98, 255, 0.2); }
.auth-divider {
  text-align: center; font-size: 12px; color: var(--text3);
  margin: 16px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-link { text-align: center; font-size: 13px; color: var(--text2); margin-top: 20px; }
.auth-link a { color: var(--accent); text-decoration: none; cursor: pointer; }
.auth-link a:hover { text-decoration: underline; }
.msg {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  padding: 10px 14px; border-radius: 1px; margin-bottom: 16px; display: none;
}
.msg.error   { background: #e5505018; border: 1px solid #e5505044; color: var(--danger); display: block; }
.msg.success { background: rgba(173, 98, 255, 0.12); border: 1px solid rgba(173, 98, 255, 0.3); color: var(--accent); display: block; }
.field-group.disabled label { color: var(--text3); }
.field-group.disabled input { opacity: 0.35; pointer-events: none; }

@media (max-width: 720px) {
  .auth-card { width: 92vw; padding: 28px 20px; }
}
