@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
}

:root {
  --white: #ffffff;
  --grey: #949494;
  --blue-800: #242742;
  --blue-700: #36384d;
  --red: #ff6155;

  --spacing-100: 8px;
  --spacing-200: 16px;
  --spacing-300: 24px;
  --spacing-400: 32px;
  --spacing-500: 40px;
  --spacing-600: 48px;
  --spacing-800: 64px;
  --spacing-900: 72px;
  --spacing-1300: 104px;
}

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

html {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--blue-800);
  line-height: 150%;
}
body {
  margin: 0;
  background-color: var(--blue-700);
}
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card {
  width: 375px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.card > .card-image {
  width: 375px;
  height: 284px;
  background-image: url("../images/illustration-sign-up-mobile.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.card-content {
  margin: auto;
  width: 327px;
  margin-bottom: 32px;
}
.content-text {
  margin-top: var(--spacing-500);
}
.text-title {
  font-size: 40px;
}
.text-description {
  line-height: 150%;
}
.text-list {
  padding-left: 28px;
}
.text-list > .list-item {
  padding-left: 10px;
  list-style-image: url("../images/icon-list.svg");
}
.email-form {
  display: flex;
  flex-direction: column;
}
.label-group {
  display: flex;
  justify-content: space-between;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.error-text {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}
.form-field {
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--grey);
  margin-bottom: 24px;
}
.form-field::placeholder {
  color: var(--grey);
}

.form-field:focus {
  border: 1px solid var(--blue-800);
  outline: none;
  color: var(--blue-800);
}
.form-btn {
  height: 56px;
  border-radius: 8px;
  border: none;
  background-color: var(--blue-800);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}
.form-btn:active {
  background: linear-gradient(to right, #ff6a3a, #ff527b);
  box-shadow: 0 16px 32px #ff605580;
}
.error-field {
  border: 1px solid var(--red);
  background-color: #ff605540;
}

.dialog-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: var(--white);
  z-index: 2;
}

.card-dialog {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.modal-icon {
  margin-bottom: 14px;
}
.modal-title {
  margin: 0;
  padding: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 14px;
}
.modal-description {
  margin-bottom: 24px;
}
.modal-close {
  padding: 25px 0;
  border: none;
  width: 100%;
  background-color: var(--blue-800);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.modal-close:active {
  background: linear-gradient(to right, #ff6a3a, #ff527b);
  box-shadow: 0 16px 32px #ff6055;
}
.dialog-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.show-modal {
  display: flex;
}
.container-none {
  display: none;
}

@media screen and (min-width: 768px) {
  .card {
    width: 608px;
    padding: 40px;
    border-radius: 36px;
  }
  .card > .card-image {
    width: 528px;
    height: 358px;
    background-image: url("../images/illustration-sign-up-tablet.svg");
  }
  .card-content {
    margin-top: 40px;
    width: 100%;
  }
  .text-title {
    font-size: 56px;
  }

  .dialog-modal {
    width: 504px;
    height: 520px;
    border-radius: 36px;
    padding: 54px;
  }

  .modal-icon {
    margin-bottom: 14px;
  }
  .modal-title {
    font-size: 56px;
  }
}

@media screen and (min-width: 1440px) {
  .card {
    padding: 32px;
    width: 904px;
    flex-direction: row;
    gap: 64px;
  }
  .card > .card-image {
    order: 2;
    width: 400px;
    height: 593px;
    background-image: url("../images/illustration-sign-up-desktop.svg");
  }
  .card-content {
    width: 376px;
  }
  .content-text > * {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .text-list {
    padding-left: 30px;
  }
}
