:root {
  --login-ink: #26382d;
  --login-muted: #728075;
  --login-line: #dce5dd;
  --login-green: #587158;
  --login-deep: #355038;
  --login-pale: #edf2e9;
  --login-sun: #e49c45;
}

* {
  box-sizing: border-box;
}

body.portal-login {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--login-ink);
  background: #eef1eb;
  font-family: "Source Sans 3", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.portal-login__stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  padding: clamp(23px, 3.5vw, 50px) clamp(18px, 5vw, 86px) 26px;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 50% 39%,
      rgba(255, 253, 249, 0.97) 0 23%,
      rgba(255, 253, 249, 0.55) 47%,
      transparent 71%
    ),
    linear-gradient(135deg, #e7eee4 0%, #f6f3eb 48%, #e9ede2 100%);
}

.portal-login__wash {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.portal-login__wash--one {
  top: -260px;
  right: -120px;
  width: min(51vw, 700px);
  height: min(51vw, 700px);
  border: 92px solid rgba(88, 113, 88, 0.12);
}

.portal-login__wash--two {
  bottom: -300px;
  left: -155px;
  width: 550px;
  height: 550px;
  border: 100px solid rgba(228, 156, 69, 0.12);
}

.portal-login__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.portal-login__brand {
  display: block;
  width: fit-content;
}

.portal-login__brand img {
  display: block;
  max-width: 190px;
  max-height: 58px;
  object-fit: contain;
}

.portal-login__website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(88, 113, 88, 0.23);
  border-radius: 999px;
  color: var(--login-deep);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.portal-login__website:hover {
  border-color: var(--login-green);
  background: #fff;
  transform: translateY(-1px);
}

.portal-login__welcome {
  max-width: 780px;
  margin: clamp(25px, 5.5vh, 65px) auto 18px;
  text-align: center;
}

.portal-login__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(88, 113, 88, 0.2);
  border-radius: 999px;
  color: var(--login-green);
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.portal-login__eyebrow i {
  color: var(--login-sun);
}

.portal-login__welcome h1 {
  margin: 17px 0 10px;
  color: var(--login-deep);
  font-family: Georgia, serif;
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.047em;
}

.portal-login__welcome h1 em {
  color: var(--login-green);
  font-weight: inherit;
}

.portal-login__welcome p {
  max-width: 515px;
  margin: 0 auto;
  color: var(--login-muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.portal-login__card-wrap {
  display: grid;
  align-items: start;
  justify-items: center;
}

.portal-login__card {
  width: min(100%, 458px);
  padding: 29px clamp(24px, 3vw, 38px) 32px;
  border: 1px solid rgba(215, 225, 215, 0.98);
  border-radius: 22px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 26px 75px rgba(51, 70, 52, 0.15);
  backdrop-filter: blur(12px);
}

.portal-login__card-mark {
  display: grid;
  width: 45px;
  height: 45px;
  margin: -51px auto 17px;
  place-items: center;
  border: 5px solid #f4f6ef;
  border-radius: 15px;
  color: #fff;
  background: var(--login-green);
  box-shadow: 0 8px 18px rgba(54, 82, 57, 0.16);
}

.portal-login__header {
  text-align: center;
}

.portal-login__header > span {
  display: block;
  color: var(--login-sun);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.portal-login__header h2 {
  margin: 7px 0 0;
  color: var(--login-deep);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.18rem);
  font-weight: 400;
  line-height: 1.1;
}

.portal-login__header p {
  margin: 7px 0 24px;
  color: var(--login-muted);
  line-height: 1.5;
}

.portal-login__form {
  display: grid;
  gap: 17px;
}

.portal-login__field {
  display: grid;
  gap: 7px;
}

.portal-login__field label {
  color: #3d5140;
  font-size: 0.85rem;
  font-weight: 800;
}

.portal-login__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.portal-login__label-row button {
  padding: 0;
  border: 0;
  color: var(--login-green);
  background: transparent;
  font-size: 0.81rem;
  font-weight: 800;
}

.portal-login__label-row button:hover {
  color: var(--login-sun);
  text-decoration: underline;
}

.portal-login__control {
  display: flex;
  align-items: center;
  min-height: 53px;
  overflow: hidden;
  border: 1px solid var(--login-line);
  border-radius: 12px;
  background: #fff;
  transition: 0.2s ease;
}

.portal-login__control:focus-within {
  border-color: var(--login-green);
  box-shadow: 0 0 0 4px rgba(88, 113, 88, 0.12);
}

.portal-login__control > i {
  width: 45px;
  flex: 0 0 45px;
  color: #809081;
  text-align: center;
}

.portal-login__control input {
  width: 100%;
  height: 51px;
  padding: 0 13px 0 0;
  border: 0;
  outline: 0;
  color: var(--login-ink);
  background: transparent;
}

.portal-login__control input::placeholder {
  color: #a1aaa2;
}

.portal-login__submit,
.portal-login__register {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: 0.2s ease;
}

.portal-login__submit {
  margin-top: 2px;
  border: 1px solid var(--login-green);
  color: #fff;
  background: var(--login-green);
  box-shadow: 0 9px 18px rgba(54, 82, 57, 0.18);
}

.portal-login__submit:hover {
  border-color: var(--login-deep);
  background: var(--login-deep);
  transform: translateY(-1px);
}

.portal-login__register {
  border: 1px solid var(--login-line);
  color: var(--login-deep);
  background: #fff;
}

.portal-login__register:hover {
  border-color: #c4d4c3;
  color: var(--login-deep);
  background: var(--login-pale);
}

.portal-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 18px;
  padding: 12px 13px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.portal-alert--success {
  color: #34704a;
  background: #eaf6ec;
}
.portal-alert--error {
  color: #af4a46;
  background: #feeeee;
}

.portal-login__notes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 22px;
  margin-top: 24px;
  color: #607064;
  font-size: 0.8rem;
  font-weight: 750;
}

.portal-login__notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-login__notes i {
  color: var(--login-sun);
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  .portal-login__stage {
    padding: 20px 14px;
  }
  .portal-login__brand img {
    max-width: 165px;
    max-height: 50px;
  }
  .portal-login__website {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }
  .portal-login__website span {
    display: none;
  }
  .portal-login__welcome {
    margin: 35px auto 44px;
  }
  .portal-login__welcome h1 {
    font-size: 2.2rem;
  }
  .portal-login__welcome h1 br {
    display: none;
  }
  .portal-login__welcome p {
    font-size: 0.95rem;
  }
  .portal-login__card {
    padding: 27px 20px 24px;
    border-radius: 18px;
  }
  .portal-login__card-mark {
    margin-top: -49px;
  }
  .portal-login__notes {
    margin-top: 22px;
    gap: 7px 14px;
  }
  .portal-login__wash--one {
    top: 25%;
    right: -230px;
    width: 450px;
    height: 450px;
  }
  .portal-login__wash--two {
    display: none;
  }
}
