:root {
  --text-text-primary: #f2f4f8;
  --text-text-accent: #24b502;
  --text-text-alert: #f74747;
  --text-text-tertiary: #939fae;

  --inputs-input-error: #3d2d36;
  --DarkNavy-Default: #0e1d31;
  --buttons-M-height: 48px;
  --inputs-M-height: 52px;
  --inputs-M-rounding: 8px;
  --buttons-button-neutral: #f2f4f8;
  --buttons-button-neutral_hover: #e5e8ed;
  all: revert!;
}

a {
  text-decoration: none;
  color: var(--text-text-primary, #f2f4f8);
  text-align: center;
  font-family: Figtree;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  /* 114.286% */
}

button {
  width: 100%;
  display: flex;
  height: var(--buttons-M-height, 48px);
  justify-content: center;
  align-items: center;
  align-self: stretch;
  background: var(--buttons-button-neutral, #f2f4f8);
  border-radius: var(--inputs-M-rounding, 8px);
  cursor: pointer;
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  border: none;
  transition: all ease-in-out .3s;
  color: var(--DarkNavy-Default, #0e1d31);
}

button:hover {
  background: var(--buttons-button-neutral_hover, #e5e8ed);
}

input,
select {
  border-radius: var(--inputs-M-rounding, 8px) !important;
  display: flex;
  height: var(--inputs-M-height, 52px);
  padding: 0px 16px;
  align-items: center;
  align-self: stretch;
  background: var(--DarkNavy-Default, #0e1d31) !important;
  color: var(--text-text-primary, #f2f4f8);
  border: solid 2px transparent !important;
  filter: unset !important;
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 400;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 0 0 30px #2f3947 inset !important;
}

input:-webkit-autofill,
input:-internal-autofill-selected {
  background: var(--DarkNavy-Default, #0e1d31) !important;
  color: var(--text-text-primary, #f2f4f8) !important;
  -webkit-text-fill-color: var(--text-text-primary, #f2f4f8) !important;
  border-color: var(--DarkNavy-Default, #0e1d31) !important;
  box-shadow: 0 0 0 30px #2f3947 inset !important;
}

input::placeholder,
input::-ms-input-placeholder {
  opacity: 1;
  /* Firefox */
  color: var(--text-text-tertiary, #939fae);
  font-family: Figtree;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 20.8px */
}

body {
  margin: 0;
  color: var(--text-text-primary, #f2f4f8);
  font-family: Figtree;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 18.2px */
  height: calc(100vh - 48px);
  min-width: 240px;
  background: var(--DarkNavy-Default, #0e1d31);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 24px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: all ease 0.2s;
  width: 100%;
  max-width: 400px;
}

.logo-container {
  max-width: 310px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.logo-container > img {
  width: 100%;
}

.title {
  max-width: 300px;
  color: var(--text-text-primary, #f2f4f8);
  text-align: center;
  font-family: Figtree;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 33.6px */
  padding: 0 12px;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all ease 0.2s;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input#form-field-email-input.has-error,
input#form-field-mode-input.has-error,
input#form-field-password-input.has-error {
  background: var(--text-text-alert, #f74747);
  color: var(--text-text-primary, #f2f4f8);
  box-shadow: 0 0 0 30px var(--inputs-input-error, #3d2d36) inset;
}

.form-submit-error-message,
.form-field-error-message {
  display: none;
  transition: all ease-in-out 0.3s;
  font-family: Figtree;
  font-size: 14px;
  font-weight: 400;
  line-height: 18.2px;
  text-align: left;
  color: var(--text-text-alert, #f74747);
}

.form-submit-error-message.has-error,
.form-field-error-message.has-error {
  display: block;
}

.form-submit-error-message {
  margin-top: 12px;
  line-height: 16px;
}

a.forgot-password-link {
  color: var(--text-text-primary, #f2f4f8);
}

a.create-an-account-link {
  color: var(--text-text-accent, #24b502);
  font-weight: 500;
}

.form-footer {
  width: 100%;
  display: flex;
}

@media only screen and (max-width: 450px) {
  body {
    height: 100%;
  }

  .container {
    justify-content: start;
    padding: 24px;
  }

  .form-footer,
  .form-container {
    width: 100%;
  }
}

@media only screen and (max-height: 600px) {
  body {
    height: fit-content;
  }
}

.select {
  position: relative;
}

.select::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-text-primary, #f2f4f8);
  pointer-events: none;
  /* Ensures clicks go to the select element */
}

select {
  cursor: pointer;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}