/* Nuvora — base: cores, tipografia e animações compartilhadas */
:root {
  --bg: #07060F;
  --panel: #0C0B17;
  --side: #0E0E19;
  --card: #13131F;
  --field: #15141F;
  --line: #24243A;
  --line-soft: #1E1E30;
  --line-strong: #2E2E46;
  --text: #F2F1F8;
  --text-2: #D8D6E8;
  --muted: #A3A2B8;
  --faint: #8A89A3;
  --accent: #8B6CFF;
  --accent-2: #5B8CFF;
  --link: #B9A8FF;
  --danger: #FF9DA6;
  --ok: #8FE0B5;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #DAD0FF; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Esconde a página até confirmar que há alguém logado */
html.auth-pending body { visibility: hidden; }

.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.dots { position: absolute; inset: 0; pointer-events: none; }
.ribbons { position: absolute; inset: 0; pointer-events: none; animation: sway 6s ease-in-out infinite alternate; }
.ribbons svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #7C4DFF, #4A63F5);
  box-shadow: 0 10px 30px rgba(92, 84, 250, .4);
  color: #fff; font-size: 16px; font-weight: 600;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 50px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--field);
  color: var(--text); font-weight: 600;
}
.btn-secondary:hover:not(:disabled) { border-color: #45456A; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--field); color: var(--text);
}
.field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--field); color: var(--text);
}
.field select { height: 50px; padding: 0 14px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.notice[hidden] { display: none; }
.notice.is-error { color: var(--danger); border-color: #5A2A33; background: #24121A; }
.notice.is-ok { color: var(--ok); border-color: #1F4A38; background: #10231B; }
.notice.is-info { color: #BBDCFF; border-color: #1F3A5A; background: #101B2A; }

@keyframes orb-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(90px, -60px) scale(1.18); } }
@keyframes orb-b { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-110px, 70px) scale(.92); } }
@keyframes sway { 0% { transform: translateY(-10px); } 100% { transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fade-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
