@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Poppins:wght@400;600&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
}

nav {
  animation: floatIn 1.8s ease;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 80px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 2em;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  user-select: none;
  transition: all 0.9s ease;
  animation: floatIn 1.8s ease;
}

.logo:hover {
  color: rgb(0, 255, 255);
}

.navbar a {
  position: relative;
  font-size: 1.3em;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 10px;
  padding: 3px 15px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.7s ease;
  white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
  color: #162938;
  border: 2px solid #fff;
  background: rgba(0, 255, 255, 0.589);
}

/* .navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transform-origin: right;
  transform: scaleX(0);
  transition: all 0.5s;
}

.navbar a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
} */

.navbar .btnLogin-popup {
  width: 130px;
  height: 50px;
  background: transparent;
  border: 2px solid #fff;
  outline: navajowhite;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  color: #fff;
  font-weight: 500;
  margin-left: 40px;
  transition: all 0.7s;
}

.navbar .btnLogin-popup:hover {
  background: #fff;
  color: #162938;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  position: absolute;
  bottom: 50%;
  width: 400px;
  height: 440px;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  overflow: hidden;
  transform: scale(0);
  transition: transform 0.5s ease, height 0.2s ease;
}

.wrapper.active-popup {
  transform: scale(1) translateY(-50%);
}

.wrapper.activee {
  height: 520px;
}

.wrapper .form-box {
  width: 100%;
  padding: 40px;
}

.wrapper .form-box.login {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

.wrapper.activee .form-box.login {
  transition: none;
  transform: translateX(-400px);
}

.wrapper .form-box.register {
  position: absolute;
  transition: none;
  transform: translateX(400px);
}

.wrapper.activee .form-box.register {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

.wrapper .icon-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #162938;
  font-size: 2em;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 1;
}

.form-box h2 {
  font-size: 2em;
  color: #162938;
  text-align: center;
}

.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #162938;
  margin: 30px 0;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  color: #162938;
  font-weight: 500;
  pointer-events: none;
  transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -2px;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  color: #162938;
  font-weight: 600;
  padding: 0 35px 0 5px;
}

.input-box .icon {
  position: absolute;
  right: 8px;
  font-size: 1.2em;
  color: #162938;
  line-height: 57px;
}

.remember-forgot {
  font-size: 0.9em;
  color: #162938;
  font-weight: 500;
  margin: -15px 0 15px;
  display: flex;
  justify-content: space-between;
}

.remember-forgot label input {
  accent-color: #162938;
  margin-right: 3px;
}

.remember-forgot a {
  color: #162938;
  text-decoration: none;
  font-weight: 600;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  height: 45px;
  background: #162938;
  border: none;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  color: #fff;
  font-weight: 500;
}

.login-register {
  font-size: 0.9em;
  color: #162938;
  font-weight: 500;
  text-align: center;
  margin: 25px 0 10px;
}

.login-register p a {
  color: #162938;
  text-decoration: none;
  font-weight: 600;
}

.login-register p a:hover {
  text-decoration: underline;
}

.container {
  top: 0;
  left: 0%;
  position: fixed;
  position: relative;
  width: 100%;
  height: 100vh;
}

.bg-slide,
.bg-slide .circle,
.bg-slide .circle img,
.circle-darktransp {
  position: absolute;
  width: 100%;
  height: 100%;
}

.bg-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-slide .circle {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.bg-slide.active .circle {
  z-index: 10;
}

.bg-slide .circle.large,
.circle-darktransp {
  clip-path: circle(50% at 50% 50%);
}

.bg-slide .circle.small {
  clip-path: circle(30% at 50% 50%);
  z-index: 12;
}

.bg-slide .circle img {
  object-fit: contain;
  transform: none;
  transform: rotate(0deg) scale(4.2);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.645, 0.045, 0.355, 1),
    opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.bg-slide.active .circle img {
  transform: rotate(360deg) scale(2.2);
  opacity: 1;
}

.bg-slide.after-active .circle img {
  transform: rotate(720deg) scale(4.2);
  opacity: 0;
}

.bg-slide.active .circle.bg img,
.bg-slide.after-active .circle.bg img {
  transition-delay: 0.9s;
}

.bg-slide.active .circle.large img,
.bg-slide.after-active .circle.large img {
  transition-delay: 0.6s;
}

.bg-slide.active .circle.small img,
.bg-slide.after-active .circle.small img {
  transition-delay: 0.3s;
}

.circle-darktransp {
  background: rgba(0, 0, 0, 0.1);
  z-index: 11;
}

.bg-slide .content-text {
  position: absolute;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bg-slide.active .content-text {
  z-index: 101;
}

.content-text .place,
.content-text .country {
  overflow: hidden;
}

.content-text .country {
  margin-top: 60px;
}

.content-text .place h1,
.content-text .country h2 {
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition-delay: 1s;
}

.content-text .place h1 {
  font-size: 60px;
  letter-spacing: 80px;
  margin-right: -80px;
  transform: translateY(100%);
}

.content-text .country h2 {
  font-size: 50px;
  letter-spacing: 30px;
  margin-right: -30px;
  transform: translateY(-100%);
}

.bg-slide.active .content-text .place h1,
.bg-slide.active .content-text .country h2 {
  transform: translateY(0%);
  opacity: 1;
}

.bg-slide.after-active .content-text .country h2 {
  transform: translateY(100%);
  opacity: 1;
}

.bg-slide.after-active .content-text .place h1 {
  transform: translateY(-100%);
  opacity: 1;
}

.line {
  position: absolute;
  top: 50.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 2px;
  background: #fff;
  z-index: 100;
}

.rotate-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 60px;
  right: 60px;
  background: #d8cc34;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatIn 1.5s ease;
}

.rotate-btn.active {
  transform: rotate(360deg);
  pointer-events: none;
  transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition-delay: 0.2s;
}

.rotate-btn i {
  font-size: 40px;
  color: #fff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .header {
    padding: 20px 40px;
  }

  .navbar a {
    font-size: 1.1em;
    margin-left: 8px;
  }

  .rotate-btn {
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
  }

  .rotate-btn i {
    font-size: 32px;
  }
}

@media (max-width: 992px) {
  .logo {
    font-size: 1.5em;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a,
  .navbar .btnLogin-popup {
    margin: 5px 10px;
  }

  .wrapper {
    width: 90%;
    height: auto;
    padding: 20px 0;
  }

  .wrapper .form-box {
    padding: 20px;
  }

  .content-text .place h1 {
    font-size: 40px;
    letter-spacing: 40px;
    margin-right: -40px;
  }

  .content-text .country h2 {
    font-size: 30px;
    letter-spacing: 15px;
    margin-right: -15px;
  }

  .line {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar a,
  .navbar .btnLogin-popup {
    margin: 10px 0;
  }

  .rotate-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .rotate-btn i {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .content-text .place h1 {
    font-size: 28px;
    letter-spacing: 12px;
    margin-right: -12px;
  }

  .content-text .country h2 {
    font-size: 22px;
    letter-spacing: 8px;
    margin-right: -8px;
  }

  .rotate-btn {
    width: 40px;
    height: 40px;
  }

  .rotate-btn i {
    font-size: 24px;
  }

  .line {
    width: 60%;
  }

  .header {
    padding: 15px 20px;
  }

  .navbar a {
    font-size: 1em;
    padding: 6px 10px;
  }

  .wrapper {
    width: 95%;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
