@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.modal-overlay {
  display: none;
  background: #3a3f44;
  opacity: .7 !important;
  height: 100%;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 998;
}

.modal-overlay.open {
    display: flex;
}

.auth-modal {
  font-family: "Inter", sans-serif;
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  height:auto;
  background: #FFFFFF;
  z-index: 999;
  border-radius: 6px;
  height: 437px;
}
.auth-modal.open {
    display: flex;
}
.mod-contain {
  display: flex;
  width: max-content;
  position: relative;
}
.mod-close {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.mod-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 46px;
  gap: 30px;
  max-width: 577px;
  width:100%;
}
.logo-img {
  max-width: 367px;
  width: 100%;
  object-fit: contain;
}
.mod-title {
  font-weight: 500;
  font-size: 22px;
  line-height: 100%;
  letter-spacing: 1px;
  color: #000000;
  margin-top: 10px;
}
.center-line {
  max-width: 450px;
}
.mod-text {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: .5px;
  color: #000000;
  opacity: .8;
}
.mod-btn {
  display: flex;
  gap: 18px;
}
.mod-btn button {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  max-width: 234px;
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 2px solid #000000;
  transition: all .3s;
}
.mod-auth-btn {
  color: #000000;
  background: #FFFFFF;
}
.mod-register-btn {
  color: #FFFFFF;
  background: #000000;
}
.mod-register-btn:hover,
.mod-auth-btn:hover {
  opacity: .8;
}
.bottom-line .mod-text {
  margin-top: 18px;
}

.mod-right-content {
  position: relative;
  /* width: 520px; */
  max-width: 520px;
width: 100%;
}

.mod-close:hover {
  opacity: .8;
}
.mod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

@media screen and (max-width: 1200px) {
    .auth-modal {
      max-width: 90%;
    }
}

@media screen and (max-width: 991px) {
    .auth-modal {
      max-width: 90%;
      height: auto;
    }
    .mod-contain {
      flex-direction: column-reverse;
    }
    .mod-right-content {
        max-width: 100%;
        max-height: 437px;
    }
    .mod-img {
      border-top-left-radius: 6px;
      border-bottom-right-radius: 0;
    }
    .mod-content {
        padding: 25px;
    }
}


@media screen and (max-width: 528px) {
    .auth-modal {
      height: auto;
      overflow-y: auto;
    }
    .mod-content {
      padding: 20px 15px;
      gap: 20px;
    }
    .mod-title {
      font-size: 16px;
    }
    .mod-text {
      font-size: 14px
    }
    .mod-btn {
      flex-direction: column;
      gap: 10px;
    }
    .mod-btn button {
      max-width: 100%;
    }
}

@media screen and (max-width: 400px) {
    .mod-right-content {
      max-height: 240px;
    }
    .mod-title {
      font-size: 14px;
    }
    .mod-text {
      font-size: 12px;
    }
}
