:root {
  --bg: #1c1c1c;
  --painel: #3d3d3d;
  --purple: #6b2fa0;
  --purple-hover: #7f3bbd;
  --purple-light: #b57edc;
  --text: #ffffff;
  --text-suave: #d9d9d9;
  --campo: #ffffff;
  --campo-texto: #2b2b2b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* Moldura */
.pagina {
  min-height: 100vh;
  padding: 12px 72px;
}

.painel {
  position: relative;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 32px 24px;
  background: var(--painel);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 28px;
}

/* Ajuda no topo */
.ajuda {
  position: absolute;
  top: 28px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
}
.ajuda strong {
  font-weight: 700;
  color: var(--purple-light);
}
.ajuda svg {
  width: 11px;
  height: 11px;
  color: var(--purple-light);
}
.ajuda:hover strong { text-decoration: underline; }

/* Bloco central */
.login {
  width: 100%;
  max-width: 436px;
  margin: auto 0;
  padding: 72px 0 40px;
}

.login-icone {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #e9d8f7;
  color: var(--purple);
}
.login-icone svg { width: 20px; height: 20px; }

h1 {
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.subtitulo {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 36px;
}

/* Campos */
.campo { margin-bottom: 22px; }

.campo label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  background: var(--campo);
  border: 2px solid transparent;
  border-radius: 10px;
  color: #666;
  transition: border-color .2s;
}
.input:focus-within { border-color: var(--purple-light); }

.input > svg { flex: none; width: 18px; height: 18px; }

.input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--campo-texto);
  font: 500 13px "Inter", sans-serif;
}
.input input::placeholder { color: #9a9a9a; }

.mostrar {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #4a6b5a;
  font: 600 11px "Inter", sans-serif;
  cursor: pointer;
}
.mostrar svg { width: 16px; height: 16px; }
.mostrar:hover { color: var(--purple); }
.mostrar:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lembrar / esqueci */
.opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 700;
}
.opcoes a:hover { color: var(--purple-light); }

.lembrar {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.lembrar input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  color: transparent;
  transition: background .2s;
}
.check svg { width: 12px; height: 12px; }
.lembrar input:checked + .check {
  background: var(--purple);
  color: #fff;
}
.lembrar input:focus-visible + .check {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}

/* Botões (mesmo estilo da página inicial) */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1.5px solid #e7d3f7;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font: 700 14px "Inter", sans-serif;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.botao:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
}
.botao:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}
.botao-cheio {
  width: 100%;
  height: 58px;
}

/* Divisor */
.divisor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  font-size: 14px;
  font-weight: 400;
}
.divisor::before,
.divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .25);
}

/* Selo de segurança */
.seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.seguro svg { width: 12px; height: 12px; }

/* Rodapé */
.rodape {
  text-align: center;
  font-size: 14px;
  color: var(--text-suave);
}
.rodape nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}
.rodape a:hover { color: var(--purple-light); }

/* Responsivo */
@media (max-width: 900px) {
  .pagina { padding: 0; }
  .painel { border-radius: 0; min-height: 100vh; }
}
@media (max-width: 520px) {
  .painel { padding: 24px 20px; }
  .login { padding-top: 88px; }
  .ajuda { right: 20px; }
}