@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");
:root {
  --login-primary: #4b5320;
  --login-highlight: #778a4a;
  --login-soft: #a7b77a;
  --login-foreground: #f4f5ed;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}
html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  background: #000000;
  width: 100%;
  overflow-x: hidden;
}
.login-ring {
  position: relative;
  width: min(500px, calc(100vw - 32px), calc(100dvh - 32px));
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-ring i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--clr);
  transition: 0.5s;
}
.login-ring i:nth-child(1) {
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: animate 6s linear infinite;
}
.login-ring i:nth-child(2) {
  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
  animation: animate 4s linear infinite;
}
.login-ring i:nth-child(3) {
  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
  animation: animate2 10s linear infinite;
}
.login-ring:hover i {
  border: 6px solid var(--clr);
  filter: drop-shadow(0 0 20px var(--clr));
}
@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate2 {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.login {
  position: absolute;
  width: min(300px, calc(100vw - 48px));
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}
.login form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.login h2 {
  font-size: 2em;
  color: var(--login-foreground);
}
.login .inputBx {
  position: relative;
  width: 100%;
}
.login .inputBx input {
  position: relative;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid var(--login-soft);
  border-radius: 40px;
  font-size: 1.2em;
  color: var(--login-foreground);
  box-shadow: none;
  outline: none;
}
.login .inputBx input[type="submit"] {
  width: 100%;
  background: var(--login-primary);
  border: none;
  cursor: pointer;
}
.login .inputBx input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.login .links {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.login .links a {
  color: var(--login-foreground);
  text-decoration: none;
}
.login-error {
  display: block;
  color: #ff4d4d;
  font-size: 0.85em;
  margin-top: 6px;
  padding-left: 10px;
}

@media (max-height: 380px) {
  .login-ring {
    width: min(500px, calc(100vw - 32px));
    min-height: 300px;
    aspect-ratio: auto;
    margin-block: 16px;
  }
}

@media (max-width: 380px) {
  .login h2 {
    font-size: 1.7em;
  }

  .login .inputBx input {
    padding: 10px 14px;
    font-size: 1em;
  }
}
