html,
body {
  height: 100%;
  font-family: "Roboto Slab", serif;
}
body.swal2-height-auto {
  height: 100% !important;
}

.page {
  display: flex;
  background: linear-gradient(180deg, #b6c7ff 0%, #ecf1ff 100%);
  min-height: 100%;
  flex-direction: column;
}

.box {
  text-align: center;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Form Card */
.form-card {
  width: 100%;
  max-width: 594px;
  padding: 24px;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 4px 4px 32px 0px #1a213814;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto 24px;
}

.form-card-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  color: #1e2024;
}
/* /Form Card */

/* Logo */
.company-logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.company-logo-wrapper .company-logo {
  width: 80px;
  aspect-ratio: 1/1;
  background-image: url(/public/img/logo.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.company-logo-wrapper .company-name {
  font-weight: 500;
  font-size: 32px;
  line-height: 24px;
  opacity: 0.9;
  color: #1b1c4e;
}
/* /Logo */

/* Social Buttons */
.social-buttons-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-button {
  color: #212c81;
  border-radius: 4px;
  padding: 8px 12px;
  border: 1px solid #212c81;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  cursor: pointer;
  margin: 0;
}

.social-button:hover {
  background-color: #212c81;
  color: #fff;
}

.social-button .button-text {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  margin-left: 4px;
}
/* /Social Buttons */

.login-form-divider {
  border-bottom: 2px solid #e4e1de;
  width: 100%;
}

.footer-message-wrapper {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #503c4d;
  margin-bottom: 24px;
}

.footer-message-wrapper a {
  text-decoration: underline;
  color: #503c4d;
}

.email-preview-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Typography */
.form-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #1e2024;
}

.form-subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #6f6671;
}

.email-preview {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}
/* /Typography */

/* Utils */
.d-row {
  flex-direction: row !important;
}

.gap-16 {
  gap: 16px !important;
}

.gap-24 {
  gap: 24px !important;
}

.justify-end {
  justify-content: end !important;
}
/* /Utils */

/* TODO: move to main */
.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-wrapper label {
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #503c4d;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.input-wrapper label .required-field-tip {
  margin-left: 4px;
  color: #e0109a;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
}

.input-wrapper input[type="email"],
.input-wrapper input[type="text"],
.input-wrapper input[type="tel"] {
  padding: 8px;
  border: 1px solid #6f6671;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  height: 40px;
  border-radius: 4px;
}

.input-wrapper input[type="email"]::placeholder,
.input-wrapper input[type="text"]::placeholder,
.input-wrapper input[type="tel"]::placeholder {
  color: #6f6671;
}

.input-wrapper input[type="email"]:focus,
.input-wrapper input[type="text"]:focus,
.input-wrapper input[type="tel"]:focus {
  border: 1px solid #212c81;
  box-shadow: 0px 0px 0px 1px #212c81;
}

.input-wrapper.error {
  background-color: transparent !important;
}

.input-wrapper.error input[type="text"],
.input-wrapper.error input[type="email"],
.input-wrapper.error input[type="tel"] {
  border: 1px solid #ff3b30;
  box-shadow: 0px 0px 0px 1px #ff3b30;
}

.input-wrapper span.error {
  background-color: transparent;
  color: #ff3b30;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.input-wrapper span.error:before {
  font-family: "Material Icons";
  content: "info_outline";
  font-size: 14px;
}

button {
  padding: 8px 16px;
  border-radius: 4px;
  height: 40px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

button:disabled {
  opacity: 32%;
}

button.primary {
  background-color: #212c81;
  border: 1px solid #212c81;
  color: #fff;
}

button.primary:not(:disabled):hover,
button.primary:not(:disabled):active {
  background: #1b1c4e;
  box-shadow: none;
}

button.outline {
  background-color: transparent;
  border: 1px solid #212c81;
  color: #212c81;
}

button.outline:not(:disabled):hover,
button.outline:not(:disabled):active {
  background-color: #212c81;
  color: #fff;
}

[type="checkbox"] + span:not(.lever) {
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #383c43 !important;
}

[type="checkbox"] + span:not(.lever) a {
  text-decoration: underline !important;
  color: #383c43 !important;
}

/* SMALL */
@media screen and (max-width: 600px) {
  .social-buttons-wrapper {
    flex-direction: column;
  }
  .company-logo-wrapper .company-logo {
    width: 40px;
  }
  .company-logo-wrapper .company-name {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
  }
  .footer-message-wrapper {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
  }
  .form-subtitle {
    font-size: 14px;
  }
  [type="checkbox"] + span:not(.lever) {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
  }
  .form-card-section {
    flex-direction: column !important;
    row-gap: 16px !important;
  }
}

.mobile-header {
  flex-direction: row;
  gap: 8px;
  padding: 16px;
  background-color: #fafafc;
  box-shadow: 4px 4px 32px 0px #1a213814;
  z-index: 1;
  position: fixed;
  width: 100%;
  align-items: center;
  display: none;
}

.mobile-header .page-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.mobile-header a.back-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 20px;
  height: 20px;
}

.mobile-header a.back-button i {
  font-size: 40px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-header {
    display: flex;
  }

  .box {
    padding: 0;
    justify-content: start;
  }

  .form-card {
    border-radius: 0;
    padding: 83px 16px 24px;
    background-color: #fafafc;
    box-shadow: none;
  }

  .form-title {
    display: none;
  }

  .page {
    background: none;
    background-color: #fafafc;
  }
}
