@import url("./root.css");
@import url("./fonts.css");
@import url("./reset.css");

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: "Inter";
  font-weight: 400;
}

body {
  background-color: var(--theme-dark-background-color-black);
  color: var(--theme-dark-text-color-white);
}

.btn {
  cursor: pointer;
  border: none;
  outline: none;
  background-color: transparent;
}

.container {
  max-width: 1880px;
  margin: 0 auto;
  padding-block: 10px;
  padding-inline: 10px;
  box-sizing: border-box;
}

.main__wrapper {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.main__wrapper-login {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 860px;
}

.wrapper__left, .wrapper__right {
  flex: 1 1 0;
  padding: 30px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #2A2A2A;
  background-color: var(--theme-dark-backgound-color-gray-dark);
}

.wrapper__left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper__right {
  position: relative;
  background-image: url("../images/image.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.register__form-block {
  background-color: var(--theme-dark-background-color-gray-medium);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: auto;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 50px 100px 0 rgba(0, 0, 0, 0.25);
  background: #1e1e1e;
}

.login__form-block {
  background-color: var(--theme-dark-background-color-gray-medium);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: auto;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 50px 100px 0 rgba(0, 0, 0, 0.25);
  background: #1e1e1e;
}

.form__auth-top {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.mb {
  margin-bottom: 10px;
}

.form__title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form__auth-wrapper {
  margin-bottom: 30px;
}

.form__description {
  margin-bottom: 25px;
}

.form__description p {
  width: 122px;
  font-weight: 400;
  line-height: 140%;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--theme-dark-text-color-gray-dark);
}

.reset-input {
  display: flex;
  flex-direction: column;
}

.reset-input label {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #aeaeae;
  margin-bottom: 6px;
}

.base__input {
  box-shadow: 0 4px 19px 0 rgba(0, 0, 0, 0.1);
  background: #222;
  padding: 18px 10px;
  background-color: transparent;
  border: 1px solid var(--theme-dark-background-color-border-gray);
  border-radius: 10px;
  color: var(--theme-dark-text-color-white);
  transition: .2s linear;
}

.base__input:focus {
  border: 1px solid rgba(255, 255, 255, 0.121);
}

.base__input::placeholder {
  color: #434343;
}

.form__auth-firstname, 
.form__auth-surname {
  flex: 1;
  min-width: 0;
}

.top__input {
  width: 100%;
}

.btn__register {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #e3ebff;
  border: 1px solid #697DFF;
  border-radius: 10px;
  width: 100%;
  height: 53px;
  box-shadow: inset 0 0 5px 0 rgba(160, 173, 255, 0.6);
  background: linear-gradient(180deg, #6378ff 0%, #3b55ff 100%);
  transition: all 0.2s linear;
}

.btn__register:hover {
  box-shadow: inset 0 0 5px 0 rgba(160, 173, 255, 0.6), 0 10px 45px 0 rgba(75, 99, 255, 0.3);
}

.btn__login {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #adadad;
  border: 1px solid #2C2C2C;
  border-radius: 10px;
  width: 100%;
  height: 53px;
  background: linear-gradient(180deg, #242424 0%, #202020 100%);
  transition: all 0.2s linear;
}

.btn__login:hover {
  background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
}

.buttons__message {
  display: flex;
  justify-content: center;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #626262;
  margin-block: 15px;
}

.error__message {
  display: none;
  font-size: 14px;
  color: red;
}

.error__message.active {
  display: inline;
}

.footer {
  padding-block: 20px;
  font-size: 14px;
  color: gray;
  display: flex;
  justify-content: center;
}

.welcome {
  font-size: 64px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.53);
  font-family: "Bebas Neue";
}

.website {
  bottom: 20px;
  position: absolute;
  font-size: 128px;
  letter-spacing: -0.01em;
  font-family: "Bebas Neue";
}

@media (max-width: 890px) {
  .main__wrapper {
    flex-direction: column;
    height: 100vh;
    align-items: normal;
  }

  .wrapper__left {
    min-height: 800px;
  }
}

@media (max-width: 690px) {
  .wrapper__right {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }

  .wrapper__left {
    max-height: auto;
  }
}

@media (max-width: 335px) {
  .form__auth-top {
    flex-direction: column;
  }
}
