:root {
  --rosa: #fe0f8f;
  --rosa-btn: #f2187c;
  --rosa-suave: #fff0f6;
  --ink: #1c2434;
  --muted: #667085;
  --link: #2f6fe0;
  --line: #e6ebf3;
  --verde: #1f9a4a;
  --verde-bg: #e9f8ee;
  --card: #ffffff;
  --sombra: 0 18px 50px rgba(40, 72, 130, 0.1);
  --fonte: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--fonte);
  color: var(--ink);
  background: #e7f1fb url("../img/login/bg-horizontal.jpg") center / cover no-repeat fixed;
}

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

.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(14px, 2vh, 28px) clamp(20px, 3vw, 56px) clamp(10px, 1.6vh, 20px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.topbar,
.stage,
footer { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: 22px;
  padding: 12px 22px 12px 18px;
  box-shadow: 0 10px 30px rgba(40, 72, 130, 0.06);
}

.brand,
.brand-mobile,
.card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand img:first-child,
.brand-mobile img:first-child,
.card-brand img:first-child {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.word {
  height: 34px;
  width: auto;
  display: block;
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav a,
footer a {
  color: #5d6778;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.topnav a:hover,
footer a:hover,
.links a:hover,
.cadastro a:hover { text-decoration: underline; }

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(12px, 2vh, 28px);
}

.vitrine {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.hero {
  flex: 1 1 480px;
  max-width: 620px;
  min-width: 0;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #ffe4f1;
  color: var(--rosa);
  font-weight: 800;
  font-size: 13.5px;
}

.selo img { width: 15px; height: 15px; }

h1 {
  margin: 0;
  padding-bottom: 0.42em;
  font-size: clamp(34px, 3.15vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #1a2230;
}

.destaque {
  position: relative;
  display: inline-block;
  color: var(--rosa);
  line-height: 1;
}

.destaque img {
  position: absolute;
  left: 0;
  top: calc(100% + 0.08em);
  width: 100%;
  height: 0.34em;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
}

.lead {
  max-width: 390px;
  margin: 22px 0 0;
  color: #5e6878;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 600;
}

.recursos {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.recursos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.icone {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--rosa-suave);
  display: grid;
  place-items: center;
}

.icone img { width: 24px; height: 24px; }

.recursos strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.recursos li span:last-child {
  color: #667085;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
}

.atalhos,
.brand-mobile { display: none; }

.colagem {
  position: relative;
  flex: 0 0 auto;
  width: clamp(250px, 32vh, 340px);
  margin-top: 0;
}

.fotos {
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 24px rgba(40, 60, 100, 0.16));
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.deco-topo { width: 48px; left: calc(26% - 30px); top: calc(8% - 20px); }
.deco-brilho { width: 54px; top: -6px; right: 18px; }
.deco-bolha { width: 74px; left: -22px; top: 47%; }
.deco-base { width: 46px; left: calc(20% - 28px); top: calc(86% - 6px); }

.card {
  flex: 0 0 400px;
  width: 400px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--sombra);
  padding: 28px 28px 22px;
}

.card-brand {
  justify-content: center;
  margin-bottom: 8px;
}

.card-brand img:first-child { width: 58px; height: 58px; }
.card-brand .word { height: 38px; }

h2 {
  margin: 6px 0 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.campo {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.campo > img {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: 0.85;
}

.campo input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e4e9f1;
  border-radius: 12px;
  padding: 0 44px 0 42px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.campo input::placeholder { color: #9aa3b2; font-weight: 650; }

.campo input:focus {
  border-color: #f7a3cc;
  box-shadow: 0 0 0 4px rgba(254, 15, 143, 0.1);
}

.olho {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.olho img { width: 18px; height: 18px; }
.olho:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }

.desafio {
  display: block;
  margin: 0 0 8px;
  padding: 10px 12px 12px;
  border: 1.5px solid #f7c5dd;
  border-radius: 12px;
  background: #fff7fb;
}

.desafio-rotulo {
  display: block;
  margin-bottom: 4px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #6b7280;
}

.desafio-codigo {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 20px;
  font-weight: 800;
  color: #f2187c;
}

.desafio input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #e4e9f1;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.desafio input:focus {
  border-color: #f7a3cc;
  box-shadow: 0 0 0 4px rgba(254, 15, 143, 0.1);
}

.desafio-ajuda {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b7280;
}

.lembrar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #3d4656;
  cursor: pointer;
}

.lembrar input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #c5ceda;
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
}

.lembrar input:checked {
  background: #2f6bff;
  border-color: #2f6bff;
}

.lembrar input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.lembrar input:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }

.entrar {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--rosa-btn);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(242, 24, 124, 0.22);
}

.entrar:hover { background: #e10e72; }
.entrar:focus-visible { outline: 3px solid #ffd0e6; outline-offset: 2px; }

.links {
  margin: 14px 0 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.links a {
  color: var(--link);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.seguro {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--verde-bg);
  color: var(--verde);
  font-size: 13.5px;
  font-weight: 800;
}

.cadastro {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eef1f6;
  text-align: center;
  color: #4b5565;
  font-weight: 700;
  font-size: 14.5px;
}

.cadastro a {
  color: var(--rosa);
  font-weight: 800;
  text-decoration: none;
}

footer {
  margin-top: auto;
  padding: clamp(10px, 1.6vh, 18px) 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #8b95a5;
  font-size: 13px;
  font-weight: 700;
}

footer p { margin: 0; }

footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

footer nav a::before { content: "·"; margin-right: 8px; color: #b0b8c4; text-decoration: none; }

@media (min-width: 1081px) {
  .vitrine { gap: 16px; }
  .hero { max-width: 640px; }

  .selo { font-size: 15px; padding: 7px 14px 7px 12px; }
  .selo img { width: 17px; height: 17px; }

  h1 { font-size: clamp(48px, 3.5vw, 62px); }

  .lead {
    max-width: none;
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.4;
  }

  .recursos { gap: 18px; margin-top: 28px; }
  .recursos strong { font-size: 18px; }
  .recursos li span:last-child { font-size: 16px; }

  .icone {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 16px;
  }

  .icone img { width: 28px; height: 28px; }

  .colagem { width: clamp(280px, 36vh, 370px); }
}

@media (max-width: 1080px) {
  .colagem { display: none; }
  .hero { padding-right: 12px; max-width: none; }
  .card { width: min(400px, 42vw); flex-basis: min(400px, 42vw); }
}

@media (max-width: 820px) {
  body {
    background-image: url("../img/login/bg-vertical.jpg");
    background-position: center top;
  }

  .page {
    width: 100%;
    min-height: 100dvh;
    padding: 16px 16px 20px;
  }

  .topbar { display: none; }

  .brand-mobile {
    display: flex;
    justify-content: center;
    margin: 4px 0 8px;
  }

  .brand-mobile .word { height: 32px; }

  .stage { display: block; margin-top: 0; }

  .vitrine {
    display: grid;
    width: 100%;
    grid-template-columns: max-content 112px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    margin-top: 0;
  }

  .hero { display: contents; }

  .brand-mobile { grid-column: 1 / -1; }
  .selo { grid-column: 1; grid-row: 2; margin-bottom: 8px; }
  h1 {
    grid-column: 1;
    grid-row: 3;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .lead { grid-column: 1 / -1; }

  .linha-importa {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin-top: 2px;
  }

  .colagem {
    display: block;
    grid-column: 2;
    grid-row: 2 / 4;
    width: 112px;
    align-self: start;
    margin: 0 0 0 4px;
  }

  .fotos { max-height: none; }

  .deco-topo { width: 22px; }
  .deco-brilho { width: 18px; top: 0; right: 2px; }
  .deco-bolha { width: 28px; left: 2px; }
  .deco-base { width: 20px; }

  .card { width: auto; flex: none; }

  h1 { font-size: 28px; letter-spacing: -0.03em; }

  .lead { font-size: 14.5px; margin-top: 14px; margin-bottom: 16px; }

  .recursos { display: none; }

  .card {
    border-radius: 24px;
    padding: 18px 16px 16px;
  }

  .card-brand { display: none; }

  h2 {
    margin: 2px 0 14px;
    font-size: 16px;
    text-align: left;
  }

  .cadastro {
    border-top: 0;
    margin-top: 12px;
    padding: 12px 10px;
    border-radius: 16px;
    background: #fff1f7;
    display: grid;
    gap: 2px;
  }

  footer {
    margin-top: 18px;
    flex-direction: column;
    gap: 6px;
  }

  footer nav { gap: 4px 10px; }
  footer nav a { font-size: 13px; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 3px;
}

.erro,
.sucesso {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}

.erro {
  background: #ffdddd;
  color: #900;
  border: 1px solid #e7a0a0;
}

.sucesso {
  background: #ddffdd;
  color: #006600;
  border: 1px solid #9ed49e;
}

.ativacao-pendente { text-align: center; margin: 0 0 12px; }

.ativacao-pendente a {
  display: inline-block;
  background: #2f6fe0;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
}

.entrar:disabled { opacity: 0.75; cursor: wait; }