@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_slnt,wght.ttf");
  font-weight: 1 999;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Inter";
}

.title {
  color: #333025;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  font-family: "Inter";
  margin-top: 0;
  margin-bottom: 24px;
}

.main-container {
  display: flex;
}

.side {
  width: 50%;
}

.left-side {
  padding: 40px;
}

.right-side {
  position: relative;
}

.right-side h1 {
  color: #4b4736;
  font-size: 34px;
  font-weight: 600;
  white-space: pre;
}

.right-main-content {
  text-align: center;
}

.right-main-content .description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  max-width: 380px;
  margin: 0 auto;
}

.right-main-content .description p {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.right-main-content ul {
  text-align: left;
}

/* desktop and tablet */
@media (min-width: 768px) {
  .right-main-content {
    padding: 46px 72px;
  }
}

/* tablet and  mobile */
@media (max-width: 1023px) {
  .main-container {
    flex-direction: column;
  }
  .side {
    width: auto;
  }
  .left-side {
    background: #f5faf7;
    padding: 0;
  }
  .logo {
    margin: 54px auto 32px auto;
  }
  .right-main-content .logo {
    display: none;
  }
}

/* desktop */
@media (min-width: 1024px) {
  .right-side {
    background: linear-gradient(180deg, #fbf9f9 0%, #eff5ef 100%), #fff;
  }
  .logo {
    margin: 0 auto;
  }
  .logo-container {
    padding-bottom: 24px;
  }
  .side {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .right-side {
    background:
      url(../img/right-login-illustration.svg) no-repeat bottom right / auto,
      url(../img/left-login-illustration.svg) no-repeat bottom left / auto,
      url(../img/connector-line.svg) repeat-x bottom center / auto,
      #f5faf7;
  }
  .side {
    min-height: 624px;
  }
  .right-main-content {
    padding: 48px;
  }
  .right-main-content ul {
    padding: 0 52px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .right-side {
    padding-bottom: 311px;
    background:
      url(../img/mobile-login-illustration.svg) no-repeat bottom right / auto,
      #f5faf7;
  }

  /*
   * "white-space: pre" above keeps the deliberate line break in this heading on larger screens,
   * but its text is wider than a phone viewport and cannot wrap. That widens the whole document
   * and clips the content of every page using this layout, the login form included. Desktop and
   * tablet keep the hard-wrapped heading; only phones let it reflow.
   */
  .right-side h1 {
    white-space: normal;
  }

  .right-main-content {
    padding: 48px 24px;
  }

  .right-main-content ul {
    padding: 0 24px;
  }
}

.container {
  background: white;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

form {
  width: 100%;
  max-width: 480px;
  margin: 0;
}

.logo {
  display: block;
}

.label {
  margin-top: 16px;
  padding-bottom: 4px;
  display: block;
  color: #7f775b;
  font-size: 14px;
  font-family: "inter";
}

.input {
  width: 100%;
  height: 40px;
  padding-left: 5px;
  border: 1px solid #7f775b;
  border-radius: 8px;
}

.input:focus-visible {
  outline: none;
}

.input:hover {
  border: 1px solid #0067c8;
}

.input:active {
  border: 1px solid #0067c8;
  outline: 1px solid #0067c8;
}

.input[readonly] {
  background: #efeee9;
  color: #4a4a4a;
  cursor: default;
}

.input[readonly]:hover,
.input[readonly]:active {
  border: 1px solid #7f775b;
  outline: none;
}

.button-primary {
  margin-top: 24px;
  display: block;
  background: #27764e;
  color: white;
  width: 100%;
  border-radius: 20px;
  height: 40px;
  padding: 8 0;
  font-size: 16px;
  font-weight: 600;
  border: none;
}

hr {
  margin-top: 24px;
  border-top: 1px solid #b2ab93;
  border-left: 0;
}

.or-text {
  color: #333025;
  display: block;
  margin: 24px 0 24px 0;
  text-align: center;
}

.privacy-policy {
  padding-top: 24px;
  text-align: center;
  display: block;
}

.privacy-policy p {
  font-size: 14px;
  margin: 4px;
}

.button-secondary {
  display: block;
  background: #ffffff;
  color: #000000;
  width: 100%;
  border-radius: 20px;
  padding: 6 0;
  border: 2px solid #000000;
  font-size: 16px;
  margin-top: 16px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  line-height: 24px;
}

#update-ios,
#update-android {
  color: #2c8658;
  border-color: #2c8658;
}

.button-learn-more {
  display: block;
  width: 100%;
  margin-top: 24px;
  background: transparent;
  color: #2c8658;
  border-radius: 20px;
  padding: 8px 0;
  border: 2px solid #2c8658;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.new-user {
  color: #333025;
  display: block;
  margin-top: 24px;
  font-size: 14px;
  text-align: center;
}

.signup-link {
  color: #2c8658;
  font-weight: 500;
  text-decoration: none;
}

.forgot-link {
  color: #2c8658;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin: 16px 0 24px 0;
  text-align: center;
  text-decoration: none;
}

.input-error {
  color: #d40002;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.input-error p {
  margin: 0;
  line-height: 20px;
  vertical-align: middle;
  padding-left: 10px;
}

.input-error img {
  width: 20px;
}

.input.error {
  background: #fff1f1;
  border: 1px solid #fe0003;
}

.social {
  vertical-align: bottom;
  margin-right: 6px;
}

.alert {
  border: 1px solid #fe0003;
  font-size: 16px;
  border-radius: 8px;
  padding: 16px;
  align-items: flex-start;
  display: flex;
}

.alert p {
  padding-left: 10px;
  margin: 0;
}

.alert-success {
  color: #363636;
  background-color: #e9f4e9;
  border-color: #3f9c35;
}

.alert-info {
  color: #363636;
  background-color: #f5f5f5;
  border-color: #8b8d8f;
}

.alert-warning {
  color: #363636;
  background-color: #fdf2e5;
  border-color: #ec7a08;
}

.alert-error {
  background: #fff1f1;
  color: #3a4445;
}

p.instruction {
  font-size: 14px;
}

#locale {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-radius: 16px;
  color: #333025;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 500;
  height: 48px;
  margin: 20px auto 0px;
  outline: none;
  padding: 12px 24px 12px 12px;

  background-image: url("../img/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 3px);
  background-size: 20px;
}

#funder-portal-title {
  color: #7473ba;
}

.standard-login h1 {
  color: #2c8658;
}
