@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin.woff2") format("woff2");
}

:root {
  --blue: #1e7ae2;
  --blue-text: #176cc7;
  --blue-light: #73b7ff;
  --navy: #1928ba; /* Corrigido: sincronizado com o azul escuro principal */
  --lime: #ff0064; /* Corrigido: sincronizado com o magenta principal */
  --white: #ffffff;
  --surface: #f4f7fa;
  --muted: #536779;
  --line: #c9d4de;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--surface);
  color: var(--navy);
  font-family: "Archivo", Arial, sans-serif;
}

a {
  color: var(--blue-text);
  font-weight: 800;
  text-underline-offset: 3px;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.page {
  min-height: 100vh;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: var(--white);
}

/* Regras corrigidas para exibir o SVG em vez do texto com polígono */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.back {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.back:hover {
  color: var(--lime);
}

.main {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 104px) 20px;
}

.card {
  position: relative;
  width: min(100%, 900px);
  min-width: 0;
  max-width: 100%;
  border: 3px solid var(--navy);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--lime);
  padding: clamp(28px, 5vw, 58px);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 35%;
  height: 9px;
  background: var(--blue);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: var(--blue-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 6px;
  background: var(--lime);
  transform: skewX(-17deg);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

.intro {
  max-width: 760px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.notice {
  min-width: 0;
  display: grid;
  gap: 0;
  margin: 0 0 38px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.notice section {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 21px 24px;
}

.notice section + section {
  border-top: 1px solid var(--line);
}

.notice h2 {
  margin: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notice p,
.notice ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.notice ul {
  padding-left: 20px;
}

.notice code {
  color: var(--navy);
  font: 700 0.82rem Consolas, monospace;
}

.notice p,
.notice li,
.notice a,
.notice code,
.fallback {
  overflow-wrap: anywhere;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #9fb0bf;
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  outline: 0;
  padding: 13px 14px;
  font: 1rem "Archivo", Arial, sans-serif;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 122, 226, 0.16);
}

.token-help {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

button {
  min-height: 56px;
  border: 0;
  border-radius: 0;
  background: var(--lime);
  color: var(--navy);
  padding: 16px;
  font: 800 0.9rem "Archivo", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  background: var(--navy);
  color: var(--lime);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message {
  display: none;
  margin: 0;
  border: 2px solid currentColor;
  padding: 13px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.message.error {
  display: block;
  background: #fff0ee;
  color: var(--error);
}

.fallback {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.noscript-warning {
  margin: 0;
  border: 2px solid var(--error);
  background: #fff0ee;
  color: var(--error);
  padding: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.footer {
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 590px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    padding-inline: 20px;
    box-shadow: 7px 7px 0 var(--lime);
  }

  .main {
    padding-inline: 14px;
  }

  .notice section {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}