@font-face {
  font-family: "Inter";
  src: local("Inter"), url("../midia/fontes/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --marfim: #ECE5F0;
  --ouro: #C9A25A;
  --ink: #012622;
  --raio: 4px;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #061018;
  color: var(--marfim);
  font-family: var(--font);
}

html { position: fixed; inset: 0; }
body { position: relative; height: 100%; }

.palco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.camada {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  will-change: transform;
}

.camada--mundo { z-index: 2; display: block; overflow: hidden; }
.camada--mundo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.camada--estrelas {
  z-index: 3;
  mix-blend-mode: screen;
  opacity: .72;
  animation: cintilar 7s ease-in-out infinite;
}
.camada--folhas {
  z-index: 5;
  mix-blend-mode: lighten;
  opacity: .38;
}
.camada--folhas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  animation: folha 9s ease-in-out infinite;
}
.camada--nevoa {
  z-index: 6;
  mix-blend-mode: screen;
  opacity: .28;
  object-position: center bottom;
}
.camada--luz {
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(42% 36% at 48% 62%, rgba(233, 176, 72, .16), transparent 70%);
  animation: respirar 5.5s ease-in-out infinite;
}

.velo {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 24, 0.08) 0%,
    rgba(3, 8, 24, 0.10) 52%,
    rgba(3, 8, 24, 0.42) 100%
  );
}

.marca {
  position: relative;
  z-index: 8;
  padding: max(22px, env(safe-area-inset-top)) 16px 0;
  text-align: center;
  pointer-events: none;
}

.marca p {
  margin: 0;
  color: var(--marfim);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: .42em;
  animation: subir .75s cubic-bezier(.22, 1, .36, 1) both;
}

.painel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 22px max(28px, env(safe-area-inset-bottom));
  animation: subir .85s cubic-bezier(.22, 1, .36, 1) both;
}

.painel h1 {
  margin: 0;
  max-width: 11em;
  text-align: center;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 520;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.painel__sub {
  margin: 0 0 8px;
  max-width: 22em;
  text-align: center;
  color: rgba(236, 229, 240, .78);
  font-size: 14px;
  line-height: 1.4;
}

.btn-entrar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(236, 229, 240, .42);
  border-radius: var(--raio);
  background: rgba(1, 38, 34, .42);
  color: var(--marfim);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -.01em;
  cursor: pointer;
}

.btn-entrar:hover,
.btn-entrar:focus-visible {
  border-color: var(--ouro);
  outline: none;
}

.btn-entrar[hidden],
.painel__criar[hidden] { display: none !important; }

.painel__criar {
  margin: 0;
  font-size: 13px;
}

.painel__criar a,
.painel__criar button {
  border: 0;
  background: none;
  color: rgba(236, 229, 240, .82);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.painel__criar a:hover,
.painel__criar button:hover,
.painel__criar a:focus-visible,
.painel__criar button:focus-visible {
  color: var(--ouro);
  outline: none;
}

.painel.is-ficha h1 { font-size: clamp(22px, 5vw, 28px); }
.painel.is-ficha .painel__sub { display: none; }

.ficha {
  display: grid;
  gap: 12px;
  width: min(280px, 100%);
  margin-top: 6px;
}
.ficha[hidden],
.recuperar[hidden] { display: none !important; }

.campo { display: grid; gap: 4px; }

.campo span {
  color: rgba(236, 229, 240, .62);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.campo input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(236, 229, 240, .55);
  border-radius: 0;
  background: transparent;
  color: var(--marfim);
  font-size: 16px;
  outline: none;
}

.campo input:focus {
  border-bottom-color: var(--ouro);
}

.erro {
  min-height: 1.2em;
  margin: 0;
  color: #E8B4C8;
  font-size: 13px;
}

.dividir {
  margin: 4px 0 0;
  color: rgba(236, 229, 240, .5);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.btn-google {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(236, 229, 240, .28);
  border-radius: var(--raio);
  background: transparent;
  color: var(--marfim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn-google:focus-visible { border-color: var(--ouro); outline: none; }

.recuperar { display: grid; gap: 10px; }
.recuperar__texto {
  margin: 0;
  color: rgba(236, 229, 240, .72);
  font-size: 13px;
  line-height: 1.4;
}
.recuperar__aviso { margin: 0; font-size: 13px; color: rgba(236, 229, 240, .8); }

@keyframes subir {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cintilar {
  0%, 100% { opacity: .55; }
  50% { opacity: .82; }
}
@keyframes folha {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}
@keyframes respirar {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .camada--estrelas,
  .camada--folhas img,
  .camada--luz,
  .marca p,
  .painel { animation: none; }
  .camada { inset: 0; width: 100%; height: 100%; }
}

@media (min-width: 768px) {
  .painel { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .camada--mundo img { object-position: center center; }
}
