* {
  user-select: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  user-select: none;
  font-family: "Cinzel Decorative", cursive;
  background: url("main bg.jpg") no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  overflow: hidden;
  background-color: #fdf4d8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.no-select {
  user-select: none;
}

.brand-name {
  z-index: 999;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  font-family: "Cinzel Decorative", cursive;
}
.brand-name2 {
  z-index: 999;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: white;
  font-family: "Cinzel Decorative", cursive;
}

#rope {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 200px;
  background: repeating-linear-gradient(
    to bottom,
    #6e4c1e,
    #6e4c1e 10px,
    #8c5e28 10px,
    #8c5e28 20px
  );
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

#handle {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background-image: url("iron ball.png");
  background-position: center;
  border-radius: 50%;
  cursor: grab;
  z-index: 101;
  box-shadow: 0 5px 15px rgb(0, 0, 0);
}

#pull-text {
  position: absolute;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-family: "Cinzel Decorative", cursive;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: float 2s ease-in-out infinite;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

.smoke-out {
  animation: smokeFade 0.6s ease forwards;
}

@keyframes smokeFade {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px) scale(1.8);
    filter: blur(8px);
  }
}

.login-box::before,
.login-box::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 51;
}

.login-box::before {
  left: 20px;
}

.login-box::after {
  right: 20px;
}

/* Swing animation */
.login-box.active {
  animation: swing 1s ease-in-out;
  transform-origin: top center;
}

@keyframes swing {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  20% {
    transform: translateX(-50%) rotate(4deg);
  }
  40% {
    transform: translateX(-50%) rotate(-4deg);
  }
  60% {
    transform: translateX(-50%) rotate(2deg);
  }
  80% {
    transform: translateX(-50%) rotate(-1deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

.login-box {
  background-image: url("form bg.png");
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  width: 400px;
  height: 110vh;
  padding: 2rem 2.5rem;
  border-radius: 30px;
  position: absolute;
  top: -100vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: top 1s ease-out, opacity 0.7s ease-out;
  z-index: 50;
  filter: drop-shadow(0 1px 40px rgb(36, 4, 4));
  padding-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box.active {
  top: 20px;
  opacity: 1;
}

.login {
  scale: 0.7;
  transform: translateY(-70px);
}

h2 {
  color: #03045e;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  font-size: 1rem;
  color: #410784;
  font-weight: bold;
}

input {
  border: 3px dashed #002447;
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.4rem;
  border-radius: 10px;
  background-color: #fffaf000;
  font-size: 1rem;
}

.input::placeholder {
  font-family: "Cinzel Decorative", cursive;
}

.login-btn {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(45deg, #00b4d8, #01689f);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.login-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #0085d8, #002b6b);
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.697);
}

.footer-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #333;
}

.footer-text a {
  color: #8b0000;
  text-decoration: none;
}

@media (max-width: 700px) {
  .login-box.active {
    top: -20px;
    opacity: 3;
  }
  .login {
    scale: 0.7;
    position: absolute;
  }
}

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Cinzel Decorative", serif;
  overflow: hidden;
}

/* Loader styles */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #fff6e5, #d1bfa1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 80px;
  aspect-ratio: 1;
  color: #854f1d;
  border-radius: 50%;
  display: grid;
  background: conic-gradient(from 90deg at 4px 4px, #0000 90deg, currentColor 0) -4px -4px /
      calc(50% + 2px) calc(50% + 2px),
    radial-gradient(
        farthest-side,
        currentColor 6px,
        #0000 7px calc(100% - 6px),
        currentColor calc(100% - 5px)
      )
      no-repeat;
  animation: l10 2s infinite linear;
  position: absolute;
}

.loader:before {
  content: "";
  border-radius: inherit;
  background: inherit;
  transform: rotate(45deg);
}

@keyframes l10 {
  to {
    transform: rotate(0.5turn);
  }
}

/* Main content hidden at start */
.main-content {
  display: none;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #5e3a1d;
}

.loader2 {
  transform: translateY(60px);
  width: 120px;
  height: 10px;
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, #ff5070 0 10px, #ffa516 0 20px)
      0/0% no-repeat,
    repeating-linear-gradient(135deg, #ddd 0 10px, #eee 0 20px) 0/100%;
  animation: l3 5.4s infinite;
}
@keyframes l3 {
  100% {
    background-size: 100%;
  }
}
