/* Nemesis Intelligence — login / cadastro
   Paleta: preto, azul-navy, ouro da logo ni.png */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

body.auth-page.auth-ni {
  --ni-gold: #d4af37;
  --ni-gold-soft: #f3e2a0;
  --ni-gold-deep: #8a6a16;
  --ni-blue: #1d4ed8;
  --ni-navy: #071428;
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  background: #000 !important;
  background-image: none !important;
  color: #f4f1e8;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-page.auth-ni .ni-wall,
body.auth-page.auth-ni .ni-veil,
body.auth-page.auth-ni .ni-orbs,
body.auth-page.auth-ni .ni-frame {
  pointer-events: none;
}

.ni-wall {
  position: fixed;
  inset: -6%;
  z-index: 0;
  background-color: #000;
  background-image: url("../../ni.png");
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
  filter: saturate(1.2) contrast(1.08) brightness(0.48);
  animation: niKen 30s ease-in-out infinite alternate;
}

.ni-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 18% 40%, rgba(29, 78, 216, 0.42), transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 12%, rgba(37, 99, 235, 0.18), transparent 52%),
    linear-gradient(115deg, rgba(0, 0, 0, 0.82) 0%, rgba(4, 10, 22, 0.52) 46%, rgba(0, 0, 0, 0.86) 100%);
}

.ni-orbs {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 42%, rgba(37, 99, 235, 0.38), transparent 34%),
    radial-gradient(circle at 10% 86%, rgba(29, 78, 216, 0.22), transparent 32%);
  animation: niPulse 7s ease-in-out infinite;
}

.ni-frame {
  position: fixed;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.16);
}

.ni-frame::before,
.ni-frame::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ni-gold);
}

.ni-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
}

.ni-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 10px 0;
}

body.auth-page.auth-ni .page-wrap {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
  align-items: center;
  gap: 2.4rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 4vw 7.5rem;
  animation: none;
}

body.auth-page.auth-ni .page-wrap::before,
body.auth-page.auth-ni .page-wrap::after {
  display: none;
}

body.auth-page.auth-ni .brand {
  margin: 0;
  animation: none;
  text-align: left;
  position: relative;
}

body.auth-page.auth-ni .brand::before {
  display: block;
  content: "";
  position: absolute;
  width: min(460px, 90%);
  height: min(460px, 90%);
  left: 38%;
  top: 38%;
  transform: translate(-50%, -52%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, rgba(29, 78, 216, 0.22) 42%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

body.auth-page.auth-ni .brand-logo,
body.auth-login.auth-ni .brand-logo,
body.auth-cadastro.auth-ni .brand-logo {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-width: min(420px, 92vw);
  height: auto;
  max-height: none;
  transform: none;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(37, 99, 235, 0.55))
    drop-shadow(0 0 48px rgba(29, 78, 216, 0.35))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: niFloat 6s ease-in-out infinite;
}

.ni-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ni-gold);
}

.ni-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: niBlink 2s ease-out infinite;
}

.ni-hero-copy h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.55rem;
  background: linear-gradient(180deg, #fff6d2 0%, #d4af37 58%, #8a6a16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ni-hero-copy p {
  margin: 0;
  max-width: 36ch;
  color: rgba(238, 242, 246, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

body.auth-page.auth-ni .card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.92), rgba(4, 7, 14, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(243, 226, 160, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible !important;
  animation: none;
  transform: none;
}

body.auth-page.auth-ni .card::before {
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(243, 226, 160, 0.45), rgba(29, 78, 216, 0.28), rgba(212, 175, 55, 0.2));
}

body.auth-page.auth-ni .card::after {
  display: none;
}

body.auth-page.auth-ni .auth-card-title {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ni-gold-soft);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

body.auth-page.auth-ni .auth-card-subtitle {
  color: rgba(196, 214, 232, 0.78);
  letter-spacing: 0;
  font-size: 0.86rem;
}

body.auth-page.auth-ni label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(243, 226, 160, 0.72);
}

body.auth-page.auth-ni input[type="text"],
body.auth-page.auth-ni input[type="password"] {
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(5, 8, 14, 0.78);
  font-family: inherit;
  font-size: 0.95rem;
  color: #f8f4ea;
  box-shadow: none;
}

body.auth-page.auth-ni input:focus {
  border-color: var(--ni-gold);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.16),
    0 0 22px rgba(29, 78, 216, 0.18);
}

body.auth-page.auth-ni .toggle-password {
  border-radius: 10px;
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(8, 12, 20, 0.9);
  color: var(--ni-gold-soft);
}

body.auth-page.auth-ni .remember-row {
  color: rgba(212, 226, 240, 0.78);
}

body.auth-page.auth-ni .remember-row input[type="checkbox"] {
  accent-color: var(--ni-gold);
}

body.auth-page.auth-ni .btn {
  border-radius: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

body.auth-page.auth-ni .btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8e7a8 0%, #d4af37 46%, #a67c12 100%);
  color: #140e04;
  border: 1px solid rgba(243, 226, 160, 0.45);
  box-shadow:
    0 12px 28px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.auth-page.auth-ni .btn-gold:hover {
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(212, 175, 55, 0.4),
    0 0 24px rgba(29, 78, 216, 0.2);
}

body.auth-page.auth-ni .btn-blue {
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.95), rgba(15, 32, 92, 0.98));
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #e8f1ff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
}

body.auth-page.auth-ni .signup-block {
  color: rgba(196, 214, 232, 0.75);
}

body.auth-page.auth-ni .signup-block .btn {
  max-width: none;
  width: 100%;
}

body.auth-page.auth-ni .inline-login-link {
  color: var(--ni-gold-soft);
}

body.auth-page.auth-ni .alert {
  border-radius: 12px;
}

body.auth-page.auth-ni .alert-error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(50, 10, 14, 0.72);
  color: #fecdd3;
}

body.auth-page.auth-ni .alert-success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(6, 32, 22, 0.72);
  color: #bbf7d0;
}

body.auth-page.auth-ni .links-row {
  margin-top: 0.85rem;
}

body.auth-page.auth-ni .links-row a.ni-buy-key {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f6e7b2;
  background: linear-gradient(180deg, rgba(28, 22, 10, 0.95), rgba(12, 10, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(243, 226, 160, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: visible;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

body.auth-page.auth-ni .links-row a.ni-buy-key:hover {
  transform: translateY(-1px);
  color: #140e04;
  border-color: #d4af37;
  background: linear-gradient(180deg, #f8e7a8 0%, #d4af37 55%, #b08a22 100%);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.28);
}

.ni-buy-key-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.auth-page.auth-ni .turnstile-wrap {
  position: relative;
  z-index: 6;
  overflow: visible;
  margin: 0.15rem 0 0.85rem;
  min-height: 72px;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  filter: none;
  transform: none;
}

body.auth-page.auth-ni .ni-turnstile-mount {
  width: 100%;
  min-height: 65px;
  overflow: visible;
}

body.auth-page.auth-ni .ni-turnstile-mount iframe,
body.auth-page.auth-ni .cf-turnstile,
body.auth-page.auth-ni .cf-turnstile iframe {
  filter: none !important;
  transform: none !important;
  max-width: 100% !important;
}

body.auth-page.auth-ni .ni-turnstile-status {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(219, 231, 255, 0.75);
}

body.auth-page.auth-ni .ni-turnstile-status.is-error {
  color: #fca5a5;
}

body.auth-page.auth-ni .ni-turnstile-reload {
  appearance: none;
  align-self: flex-start;
  border: 1px solid rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

body.auth-page.auth-ni .ni-turnstile-reload:hover {
  border-color: rgba(212, 175, 55, 0.5);
  color: #f3e2a0;
}

body.auth-page.auth-ni .auth-footer-bar {
  z-index: 4;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  border-top: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: none;
}

body.auth-page.auth-ni .auth-footer-bar::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.7), transparent);
  opacity: 1;
}

body.auth-page.auth-ni .auth-footer-stack {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

body.auth-page.auth-ni .auth-footer-tagline {
  display: none;
}

body.auth-page.auth-ni .auth-footer-copy-row {
  color: rgba(160, 178, 204, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

body.auth-page.auth-ni .auth-footer-copy-row .tg-link {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(15, 32, 78, 0.85);
  box-shadow: none;
}

@keyframes niKen {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.4%, -1.1%, 0); }
}

@keyframes niPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes niBlink {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

@keyframes niFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes niRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .ni-frame { inset: 8px; }

  body.auth-page.auth-ni .page-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.15rem 1rem 1.4rem;
    gap: 0.35rem;
  }

  body.auth-page.auth-ni .brand::before {
    left: 50%;
    top: 42%;
  }

  body.auth-page.auth-ni .brand-logo,
  body.auth-login.auth-ni .brand-logo,
  body.auth-cadastro.auth-ni .brand-logo {
    width: min(260px, 78vw);
    margin-inline: auto;
  }

  .ni-hero-copy h1 { font-size: 1.45rem; }
  .ni-hero-copy p { margin-inline: auto; font-size: 0.92rem; }

  body.auth-page.auth-ni .card {
    backdrop-filter: blur(10px);
  }

  body.auth-page.auth-ni .auth-footer-bar {
    position: static;
  }
}
