/* ══════════════════════════════════════════════════════════════
   auth.css — Tela de login/cadastro dark space
   ══════════════════════════════════════════════════════════════ */

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

body.auth-page {
  overflow: auto; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

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

/* ── Logo ── */
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 28px;
}
.auth-logo-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,.5);
}
.auth-logo-name {
  font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Card ── */
.auth-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px; padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ── Tabs ── */
.auth-tabs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 8px; border-radius: 8px; border: none;
  background: none; color: var(--text-muted); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all .18s; font-family: 'Inter', sans-serif;
}
.auth-tab.active {
  background: linear-gradient(135deg, #7C3AED, #A78BFA); color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,.4);
}

/* ── Error banner ── */
.auth-error {
  display: none; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.85rem; color: #FCA5A5;
  margin-bottom: 16px;
}
.auth-error.visible { display: block; }

/* ── Panels ── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ── Links ── */
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
