@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap");

:root {
  --white-0: white;
  --blue-1: #160430;
  --blue-2: #261046;
  --gray-1: #a4a4a4;
  --gray-2: #b6b6b6;
  --purple-grad-1: linear-gradient(90deg, #501794 0.03%, #3e70a1 101.88%);
}

* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  font-style: normal;
  line-height: normal;
  font-weight: 500;
  color: var(--white-0);
}

/* form */
.container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  width: 350px;

  @media screen and (max-width: 800px) {
    width: 300px;
  }
}

form input {
  width: 100%;
  height: 10px;
  margin-bottom: 10px;
  padding: 24px 18px;
  font-size: 16px;
  color: var(--gray-1);
  background: var(--blue-2);
  backdrop-filter: blur(7.61834192276001px);
  border: none;
  border-radius: 8px;
  font: inherit;
}

form input:focus {
  outline: none;
  box-shadow: rgba(255, 255, 255, 0.12) 0px 2px 16px 0px, rgba(255, 255, 255, 0.32) 0px 2px 16px 0px;
}

.wrong-login {
  color: red;
}

.form-submit-btn {
  width: 100%;
  color: inherit;
  font: inherit;
  font-size: 22px;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  background: var(--purple-grad-1);
  cursor: pointer;
}

/* other container elements */
.container h1 {
  font-size: 77.711px;
  font-weight: 700;
  margin-bottom: 16px;
}

.container h4 {
  font-size: 15.041px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* main */
.main {
  display: flex;
  flex-direction: row-reverse;
  background: linear-gradient(89deg, #160430 0.47%, rgba(22, 4, 48, 0) 22.87%), url("./assets/background-img-2.jpg"),
    lightgray -475px 0px / 150.966% 100% no-repeat;
  background-size: cover;
  height: 100vh;

  @media screen and (max-width: 800px) {
    flex-direction: column-reverse;
    background-image: url("./assets/background-img-1.jpg");
    background-position: center;
    background-size: cover;
  }
}

.title {
  position: absolute;
  bottom: 40px;
  left: 50px;
  font-size: 36px;
  font-weight: 700;
  z-index: 3;

  @media screen and (max-width: 800px) {
    display: none;
  }
}

.title h2:first-child {
  margin-bottom: -20px;
}

.title-colored {
  background: linear-gradient(142deg, #501794 21.76%, #ae69ff 110.63%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shining {
  width: 100%;
  height: 150px;
  background: linear-gradient(0deg, #160430 0%, rgba(0, 0, 0, 0) 90%);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;

  @media screen and (max-width: 800px) {
    display: none;
  }
}

/* container wrapper */
.container-wrapper {
  display: grid;
  grid-template: 1fr / 1fr 1fr 25px;
  /* justify-items: end; */
  width: 60%;
  background: rgb(22, 4, 48);
  background: linear-gradient(90deg, rgba(22, 4, 48, 0) 15%, rgba(22, 4, 48, 1) 45%);

  @media screen and (max-width: 800px) {
    grid-template: 1fr / 1fr 1fr 1fr;
    width: 100%;
    background: linear-gradient(180deg, rgba(22, 4, 48, 0) 15%, rgba(22, 4, 48, 1) 45%);
    padding-bottom: 100px;
  }
}

/* preloader styles */
#preload {
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 10;
  background: var(--blue-1);
}

#preload h1 {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12.5rem;
  opacity: 0.1;
}

.loader {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: linear-gradient(0deg, rgba(255, 61, 0, 0.2) 33%, #ff3d00 100%);
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--blue-1);
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
