* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Funciona em Chrome, Edge e Safari */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Base (desktop) */
.stage {
  background: url("../img/bg.png") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 60px;
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.stage-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper__content {
  width: 100%;
  padding-right: 10px;
  padding-top: 10px;
}

.paper__frame {
  width: 100%;
  max-width: 605px;
  aspect-ratio: 831 / 896;
  display: block;
  user-select: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
  border-image: url("../img/papiro.png") 34 fill;
  border-width: 25px;
  border-style: solid;
  border-color: transparent;
  box-sizing: border-box;
  padding: 0px 60px 70px 70px;
}

.logo {
  width: 268px;
  height: 150px;
  margin: -70px auto !important;
  align-self: anchor-center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
  background-image: url("../img/logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.title {
  margin-top: 70px !important;
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  color: #6a3112;
  line-height: 1.05;
  align-self: center;
}

.form {
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 100%;
}

.inp {
  width: 100%;
  height: 73px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255, 251, 238, 1);
  border: 2px solid rgba(113, 57, 31, 0.2);
  color: rgba(34, 34, 34, 1);
  outline: none;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  align-self: center;
  margin-bottom: 13px;
}

.inp:disabled {
  background-color: rgba(0, 0, 0, 0.21);
  pointer-events: none;
  cursor: not-allowed;
}

.btn:disabled {
  background-color: #ba0e0e;
  pointer-events: none;
  cursor: wait;
}

.inp--yellow {
  background: #f7db92;
  border-color: #d8b868;
}

.inp::placeholder {
  color: rgba(91, 47, 18, 0.45);
}

.about {
  display: flex;
  flex-direction: column;
}

.about>.submit {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.submit>a {
  text-decoration: none;
  font-family: Inter;
  font-size: 15px;
  font-weight: 500;
  color: black;
}

.desc {
  margin: 4px 0 25px;
  line-height: 1.25;
  font-size: 14px;
  font-weight: 400;
  color: #7c3a12;
  align-self: center;
  font-family: inter;
}

.desc strong {
  font-weight: 700;
}

.btn {
  height: 95px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  background: #ff1f1f;
  position: relative;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.btn>span {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  -webkit-text-stroke: 8px #991317;
  paint-order: stroke fill;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.btn:hover {
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(1px);
}

/* =========================
   BREAKPOINTS
========================= */

/* >= 1920 (large desktop) */
@media (min-width: 1920px) {
  .inp {
    height: 65px;
  }

  .title {
    margin: 0px 0 5px;
  }

  .btn {
    height: 76px;
  }
}

@media (min-width: 1921px) {
  .stage {
    padding: 74px 25px;
  }
}

/* >= 1600 */
@media (min-width: 1600px) {}

@media (min-width: 1600px) and (min-height: 1081px) {}

/* >= 1366 */
@media (min-width: 1366px) {
  .title {
    margin: -5px 0 9px;
  }
}

/* >= 1024 (desktop) */
@media (min-width: 1024px) {}

/* <= 1600 (standard desktop) */
@media (max-width: 1600px) {
  .btn {
    height: 65px;
  }

  .btn>span {
    font-size: 20px;
  }
}

/* Short viewport */
@media (max-height: 820px) {
  .inp {
    height: 43px;
  }
}

/* <= 1024 (tablet/mobile — troca para papiro mobile) */
@media (max-width: 1024px) {
  .stage {
    background: url("../img/bg-mobile.png") center/cover no-repeat;
    background-size: cover;
    background-position: center bottom;
    padding: 20px 0px;
    align-items: center;
    justify-content: center;
  }

  .paper__frame {
    border-image: url(../img/papiro-mobile.png) 8 15 120 fill;
    border-width: 8px 15px 0px;
    padding-bottom: 190px;
  }

  .logo {
    background-image: url("../img/logo-mobile.png");
    width: 200px;
    margin: -60px auto 4px !important;
  }

  .title {
    margin: -30px 0 10px 0 !important;
    font-size: 20px;
    width: auto;
    height: auto;
  }

  .inp {
    width: 100%;
    max-width: 286px;
    height: 55px;
    margin-right: 0;
    font-size: 16px;
  }

  .about {
    flex-direction: column-reverse;
    width: 100%;
    align-self: center;
    max-width: 286px;
    margin-left: 0;
  }

  .desc {
    font-size: 12px;
    width: auto;
    margin: 20px 0;
  }

  .btn {
    width: 100%;
    max-width: 286px;
    height: 50px;
  }

  .btn>span {
    font-size: 14px;
  }
}

/* <= 430 (small mobile — tudo na tela, sem restrições de tamanho) */
@media (max-width: 430px) {
  .paper__frame {
    width: 100vw;
    max-width: none;
    aspect-ratio: unset;
    border-width: 8px 15px 120px;
  }

  .paper__content {
    padding: 0;
    width: 100%;
  }

  .logo {
    width: 110px;
    margin: -8px auto 4px;
  }

  .title {
    font-size: 18px;
  }

  .inp {
    max-width: none;
    height: 44px;
    font-size: 14px;
  }

  .about {
    max-width: none;
    width: 100%;
  }

  .btn {
    max-width: none;
    width: 100%;
    height: 48px;
  }

  .btn>span {
    font-size: 13px;
    -webkit-text-stroke: 4px #991317;
    white-space: nowrap;
  }
}

/* <= 768 (tablet portrait) */
@media (max-width: 768px) {
  .inp {
    height: 45px;
  }
}

@media (max-width: 768px) and (min-height: 1081px) {}

/* <= 576 (mobile) */
@media (max-width: 576px) {
  .inp {
    height: 45px;
  }

  .btn {
    height: 50px;
  }

  .btn>span {
    font-size: 16px;
  }
}

@media (max-width: 576px) and (min-height: 1081px) {}

@media (max-width: 470px) {}

/* <= 400 (small mobile) */
@media (max-width: 400px) {
  .paper__frame {
    min-height: 820px !important;
  }

  .inp {
    max-width: 100%;
  }

  .about {
    max-width: 100%;
  }

  .btn {
    max-width: 100%;
  }

  .title {
    font-size: 18px;
  }
}