@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

input:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s !important;
  -webkit-text-fill-color: #110b2f !important;
  color: #110b2f !important;
  caret-color: #110b2f;
}

html {
  font-size: 32px;
  height: 100%;
}

body {
  height: 100%;
  width: 100%;
  font-family: "Roboto", sans-serif;
}

@media screen and (min-width: 768px) {
  body {
    display: none;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 4px;
  }

  body {
    background-color: #110b2f;
  }

  .login {
    display: none;
  }

  header {
    position: relative;
    z-index: 1;
    height: 30%;
    width: 100%;
    top: 0;
    left: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  header h3 {
    font-size: 10rem;
    letter-spacing: 1px;
  }

  header p {
    font-size: 4rem;
    font-family: "Lato", sans-serif;
    color: #999;
    letter-spacing: 1px;
  }

  main {
    height: 80%;
    width: 100%;
    background-color: white;
    position: relative;
    overflow: hidden;
    padding: 10rem 4rem;
    color: #110b2f;
    border-radius: 13rem 13rem 0 0;
  }

  main h3 {
    font-size: 7rem;
    margin-bottom: 3rem;
  }

  .main-input {
    display: grid;
    gap: 2.5rem;
  }

  main label {
    display: block;
    font-size: 3.5rem;
    font-weight: 500;
    font-family: "Lato", sans-serif;
    margin-bottom: 1.5rem;
  }

  main input {
    width: 100%;
    padding: 3rem 4rem;
    font-size: 4rem;
    outline: none;
    color: #110b2f;
    background-color: #e6e6f0;
    border-radius: 3rem;
    border: 1px solid #e6e6f0;
  }

  .main-int {
    position: relative;
  }

  .main-int .fa-check {
    position: absolute;
    right: 3rem;
    top: 60%;
    font-weight: 600;
    color: #18c653;
    transform: translateY(-30%);
    font-size: 5.5rem;
    background-color: #e6e6f0;
    display: none;
  }

  .main-int .fa-exclamation {
    position: absolute;
    right: 3rem;
    top: 60%;
    font-weight: 600;
    color: red;
    transform: translateY(-30%);
    font-size: 3.5rem;
    height: 6rem;
    width: 6rem;
    border: 2px solid red;
    display: none; /*flex*/
    background-color: #e6e6f0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  input[type="password"] {
    font-weight: 700;
    letter-spacing: 2px;
  }

  input[type="password"]::placeholder {
    font-weight: 400;
  }

  .chekbox {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 2.5rem 0;
    align-items: center;
  }

  .chekbox-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    font-size: 3rem;
  }

  #chekboxDone p {
    text-align: start;
  }

  .chekbox-box:last-child p {
    color: grey;
  }

  .btn-box {
    width: 100%;
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 600;
    background-color: #110b2f;
    color: white;
    border-radius: 4rem;
    margin-bottom: 3rem;
    transition: all 0.3s;
  }

  .btn-box:active {
    transform: scale(0.95);
    box-shadow: 0 0 15px #110b2f8a;
  }

  main p:last-child {
    font-size: 3.2rem;
    text-align: center;
    color: grey;
  }

  input[type="checkbox"] {
    display: none;
  }

  .custom-checkbox {
    width: 5rem;
    height: 5rem;
    display: inline-block;
    border: 2px solid #555;
    border-radius: 1.5rem;
    position: relative;
    transition: all 0.5s ease;
  }

  input[type="checkbox"]:checked + .custom-checkbox {
    background: #110b2f;
    border-color: #110b2f;
  }

  input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✔";
    font-size: 3rem;
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .loading {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
  }

  .loading-bar {
    display: grid;
    grid-template-columns: repeat(3, 25px);
    gap: 15px;
  }

  .loading span {
    width: 5rem;
    height: 5rem;
    background-color: #3498db;
    border-radius: 50%;
    animation: bouse 1.2s infinite ease-in-out;
  }

  .loading span:nth-child(1) {
    animation-delay: 0s;
  }
  .loading span:nth-child(2) {
    animation-delay: 0.1s;
  }
  .loading span:nth-child(3) {
    animation-delay: 0.2s;
  }
  .loading span:nth-child(4) {
    animation-delay: 0.3s;
  }
  .loading span:nth-child(5) {
    animation-delay: 0.4s;
  }
  .loading span:nth-child(6) {
    animation-delay: 0.5s;
  }
  .loading span:nth-child(7) {
    animation-delay: 0.6s;
  }
  .loading span:nth-child(8) {
    animation-delay: 0.7s;
  }
  .loading span:nth-child(9) {
    animation-delay: 0.8s;
  }

  @keyframes bouse {
    0%,
    80%,
    100% {
      transform: scale(0.6);
      opacity: 0.7;
    }
    40% {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* Ro`yxatdan o`tish */

@media (max-width: 767px) {
  .register {
    display: block;
  }

  .module {
    position: fixed;
    top: 3rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    z-index: 999;
    display: grid;
    gap: 1rem;
  }

  .error {
    background-color: red;
    white-space: nowrap;
    padding: 4px 2rem;
    border-radius: 1.2rem;
    transition: all 0.5s ease;
  }
}
