:root {
  --bg-top: #15473f;
  --bg-center: #3cb299;
  --button: #2e8b67;
  --field-line: rgba(255, 255, 255, 0.582);
  --text: #277253;
  --text-dark: #06352f;
  --light-color: #fff;
}

@font-face {
  font-family: 'Quart Outline';
  src: url('../fonts/Quart-Outline.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Quart';
  src: url('../fonts/Quart-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AuraluxeSerif";
  src: url("../fonts/Auraluxe-Serif.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "AuraluxeScript";
  src: url("../fonts/Auraluxe-Script.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GCBargain";
  src: url("../fonts/GCBargain-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  transition: 180ms ease;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Quart';
}

.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);

}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #B7E8CC;
  background: radial-gradient(circle, rgb(174, 255, 211) 0%, rgb(0, 8, 3) 79%);
  background-image: url(../img/backgroundMobile.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(1.05) saturate(1.05);
  z-index: 0;
}

@media screen and (min-width: 769px) {
  .main::before {
    background-image: url(../img/backgroundDesktop.webp);
  }
}

.main::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(252, 0, 0, 0.02) 1px, transparent 1px);
  /* background-image: url(../img/nwrbg.png); */
  background: radial-gradient(circle, rgb(36, 148, 86) 0%, rgb(0, 8, 3) 79%);
  background-size: cover;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* .container>span {
  position: absolute;
  display: block;
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 20px;
  color: var(--light-color);
  opacity: 0.95;
  font-family: "GCBargain";
} */


.brand {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 20px;
  color: var(--light-color);
  opacity: 0.95;
  font-family: "GCBargain";
  z-index: 10;
}


.righthand,
.lefthand {
  /* display: none; */
  position: absolute;
  z-index: 2;
}

.righthand {
  top: 0;
  right: 0;
  animation: slide-rotate-in-right 3s ease both;
}

.lefthand {
  left: 0;
  bottom: 0;
  animation: slide-rotate-in-left 3s ease both;
}

@keyframes slide-rotate-in-right {
  0% {
    transform:
      translateX(400px) rotate(-65deg) rotateX(-65deg);

  }

  60% {
    transform:
      translateX(0px) rotate(4deg);

  }

  100% {
    transform:
      translateX(0px) rotate(0deg) rotateX(0deg);

  }
}

@keyframes slide-rotate-in-left {
  0% {
    transform:
      translateX(-400px) rotate(-65deg) rotateX(-65deg);
  }

  60% {
    transform:
      translateX(0px) rotate(4deg);
  }

  100% {
    transform:
      translateX(0px) rotate(0deg) rotateX(0deg);
  }
}

.form {
  /* margin-top: 6vh; */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 360px;
}

.form h1 {
  line-height: 1.02;
  font-weight: 500;
  color: var(--light-color);
  font-size: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.form h1 span {
  /* display: block; */
  font-size: 2em;
  color: var(--light-color);
  text-transform: none;
  font-weight: 400;
  font-family: "AuraluxeSerif";
  position: relative;
}

.form h1 span b {
  font-size: 1.4em;
  font-weight: 400;
  font-family: "AuraluxeScript";
  transform: translateY(20px) translateX(-60px);
  position: absolute;
}

form input {
  width: 80%;
  padding: 12px 20px;
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--light-color);
  border-radius: 6px;
  font-weight: 400;
  border-bottom: 2px solid rgba(255, 255, 255, .6);
}

form input::placeholder {
  font-family: "GCBargain";
  color: var(--light-color);
  font-weight: 300 !important;
}

form input:focus {
  transform: translateY(-1px);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  font-family: "GCBargain";
  color: var(--light-color);
  font-weight: 300 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff00 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s;
  background: transparent;
}


form button {
  display: block;
  width: 260px;
  max-width: 100%;
  margin: 2em auto;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--light-color);
  background: var(--button);
  font-family: "GCBargain";
  letter-spacing: 1px;
  border: none;
  border-radius: 60px;
  box-shadow: 0 0px 7px rgba(35, 90, 60, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-transform: none;
}

form button:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

form button:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.input-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.wait {
  text-align: center;
  color: var(--light-color);
  font-weight: 400;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}


.wait p:nth-child(3) {
  text-transform: uppercase;
}


@-webkit-keyframes fade-out-tl {
  0% {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateX(-50px) translateY(-50px);
    transform: translateX(-50px) translateY(-50px);
    opacity: 0;
  }
}

@keyframes fade-out-tl {
  0% {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateX(-50px) translateY(-50px);
    transform: translateX(-50px) translateY(-50px);
    opacity: 0;
  }
}


@-webkit-keyframes fade-out-top {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
}

@keyframes fade-out-top {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
}

@-webkit-keyframes fade-in-br {
  0% {
    -webkit-transform: translateX(50px) translateY(50px);
    transform: translateX(50px) translateY(50px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in-br {
  0% {
    -webkit-transform: translateX(50px) translateY(50px);
    transform: translateX(50px) translateY(50px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

.wait.animate-in {
  display: block !important;
  animation: fade-in-br 1s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.form.animate-out form {
  animation: fade-out-tl 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.form.animate-out h1 {
  animation: fade-out-top 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* ==============
MEDIA QUERIES
================= */

@media screen and (min-width:769px) and (max-width:900px) {
  .container>span {
    top: -3em;
  }
}

@media (max-width:768px) {
  html {
    font-size: 18px;
  }

  .form h1 {
    font-size: 30px;
  }

  .form h1 span {
    font-size: 1.5em;
  }

  form {
    width: 100%;
    padding-top: 2em;
    max-width: 500px;
  }

  form input {
    width: 80%;
  }

  form button {
    width: 100%;
    max-width: 320px;
    margin: 2em auto;
    padding: .6em 0;
  }

  .container>span {
    top: -5em;
  }

  .righthand,
  .lefthand {
    width: 160px;
    position: absolute;
    z-index: 2;
  }

  .righthand {
    right: -20px;
  }

  .lefthand {
    left: -20px;
  }
}

@media screen and (min-width:769px) {
  .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container>span {
    top: -50px;
  }

  .form h1 {
    margin-top: 8vh;
    margin-bottom: 36px;
    font-size: 3em;
  }

  .form h1 span {
    font-size: 1.4em;
  }

  form {
    width: 70%;
  }

  form button {
    width: 100%;
    max-width: 320px;
    margin: 2em auto;
    padding: .6em 0;
    background: #6ACCAA;
    background: radial-gradient(circle, #6accaa 0%, #3f9674 61%, #3f9674 100%);
  }

  .righthand,
  .lefthand {
    display: block;
    max-width: 500px;
  }

  .form h1 span b {
    font-size: 1.4em;
    font-weight: 400;
    font-family: AuraluxeScript;
    transform: translateY(26px) translateX(-80px);
    position: absolute;
  }
}


@media (max-height:900px) {
  .righthand {
    top: -3em;
    right: 0;
  }

  .lefthand {
    left: 0;
    bottom: -3em;
  }

}