*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --acc: #e05555;
  --acc-dk: #c73d3d;
  --acc-lt: rgba(224, 85, 85, 0.15);
  --font: "Plus Jakarta Sans", sans-serif;
  --r: 16px;
  --r-sm: 10px;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Fundo com a imagem da Arklok ── */
.nx-bg {
  position: fixed;
  inset: 0;
  background-image: url("../imagens/fundo\ -\ light.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Leve véu escuro para o cartão de login continuar legível sobre o fundo claro */
.nx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 15, 0.18);
}

/* ── Floating icon particles (bolhas) ── */
.bolha {
  position: fixed;
  bottom: -60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 10, 20, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(20, 10, 20, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bolhaRise linear infinite;
  z-index: 1;
}

.bolha::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(224, 85, 85, 0.25);
}

@keyframes bolhaRise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ── Shell ── */
.nx-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Split card ── */
.nx-card {
  width: 100%;
  max-width: 820px;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* ── Left panel ── */
.nx-left {
  background: rgba(20, 10, 20, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nx-logo-hex {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(224, 85, 85, 0.9);
}

.nx-logo-hex img {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nx-logo-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.nx-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.nx-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* description h1 / p — IDs preservados para JS typewriter */
.description h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.description h1 span {
  color: var(--acc);
}

.description p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 280px;
  margin-top: 10px;
}

.nx-divider {
  width: 40px;
  height: 3px;
  background: var(--acc);
  border-radius: 999px;
  margin-top: 4px;
}

.nx-left-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Right panel ── */
.nx-right {
  background: rgba(20, 10, 20, 0.6);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.nx-right-header {
  margin-bottom: 28px;
}

.nx-right-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.nx-right-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Fields ── */
.nx-field {
  margin-bottom: 14px;
}

.nx-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nx-iw {
  position: relative;
  display: flex;
  align-items: center;
}

.nx-iw-icon {
  position: absolute;
  left: 13px;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nx-iw-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nx-iw:focus-within .nx-iw-icon {
  color: rgba(255, 255, 255, 0.8);
}

.nx-iw input {
  width: 100%;
  height: 46px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
}

.nx-iw input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.nx-iw input:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.nx-iw input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-lt);
}

/* Eye toggle (injetado pelo login.js — preservado) */
.btn-mostrar-senha-js {
  position: absolute !important;
  right: 8px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 4px !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
}

.icone-olho-js {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.5;
  transition:
    opacity 0.15s,
    transform 0.1s;
  filter: brightness(10);
}

.btn-mostrar-senha-js:hover .icone-olho-js {
  opacity: 0.9;
}
.btn-mostrar-senha-js:active .icone-olho-js {
  transform: scale(0.85) !important;
}

/* ── Row: remember + forgot ── */
.nx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
}

.nx-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  user-select: none;
}

.nx-remember input[type="checkbox"] {
  accent-color: var(--acc);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.recuperar-senha {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: var(--font);
}

.recuperar-senha:hover {
  color: #fff;
}

/* ── Submit ── */
#acessar {
  width: 100%;
  height: 48px;
  background: var(--acc);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(224, 85, 85, 0.5);
  transition:
    background 0.2s,
    transform 0.12s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

#acessar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 55%
  );
  pointer-events: none;
}

#acessar:hover {
  background: var(--acc-dk);
  box-shadow: 0 6px 24px rgba(224, 85, 85, 0.55);
}

#acessar:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(224, 85, 85, 0.3);
}

#acessar svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Error ── */
#erro {
  min-height: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fca5a5;
  text-align: center;
  margin-top: 12px;
}

/* ── Typewriter cursor ── */
.cursor-type {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--acc);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Card entrance ── */
.nx-card {
  animation: cardRise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .nx-card {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .nx-left {
    display: none;
  }
  .nx-right {
    padding: 36px 28px;
  }
}