:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #20332a;
  background: #f5f7f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body.login-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse at 12% 12%, rgba(217, 232, 205, 0.62), transparent 34%),
    #f5f7f2;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  width: min(100%, 1000px);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(32, 68, 48, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(28, 54, 37, 0.14), 0 4px 12px rgba(28, 54, 37, 0.05);
}

.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 590px;
  overflow: hidden;
  padding: 54px 48px 36px;
  color: #f7fbf4;
  background: linear-gradient(145deg, #123d2d 0%, #17623f 58%, #287c46 100%);
}

.brand-content,
.brand-caption {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(4, 33, 20, 0.18);
}

.brand-mark img {
  display: block;
  width: 48px;
  height: 58px;
  object-fit: contain;
}

.brand-eyebrow,
.login-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-eyebrow {
  color: #c0df9a;
}

.login-brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.brand-description {
  max-width: 280px;
  margin: 20px 0 0;
  color: rgba(246, 251, 244, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.brand-caption {
  margin: 0;
  color: rgba(246, 251, 244, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-decoration {
  position: absolute;
  z-index: 0;
  right: -118px;
  bottom: 76px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(224, 244, 202, 0.18);
  border-radius: 50%;
}

.brand-decoration::before,
.brand-decoration::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(224, 244, 202, 0.16);
  border-radius: 50%;
}

.brand-decoration::before {
  inset: 28px;
}

.brand-decoration::after {
  inset: 58px;
}

.login-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(40px, 7vw, 82px) 28px;
}

.login-card {
  width: 100%;
  max-width: 390px;
  margin: auto;
}

.login-heading {
  margin-bottom: 34px;
}

.login-eyebrow {
  color: #568044;
}

.login-heading h2 {
  margin: 0;
  color: #1e3026;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.login-heading > p:last-child {
  margin: 12px 0 0;
  color: #69766e;
  font-size: 14px;
  line-height: 1.6;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -14px 0 22px;
  padding: 12px 14px;
  border: 1px solid #f1c4bf;
  border-radius: 10px;
  background: #fff5f3;
  color: #9e352c;
  font-size: 13px;
  line-height: 1.45;
}

.alert-icon {
  display: grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #b94c40;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.form-field {
  margin-bottom: 21px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #31463a;
  font-size: 13px;
  font-weight: 650;
}

.form-field input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #d7dfd8;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #23372b;
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-field input::placeholder {
  color: #9aa59d;
}

.form-field input:hover {
  border-color: #aabbaa;
  background: #fff;
}

.form-field input:focus-visible {
  border-color: #36804b;
  box-shadow: 0 0 0 4px rgba(54, 128, 75, 0.14);
}

.remember-login {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 16px;
  color: #31463a;
  cursor: pointer;
  font-size: 12px;
}

.remember-login input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 1px 0 0;
  accent-color: #21683e;
}

.remember-login span { display: grid; gap: 2px; }
.remember-login strong { font-weight: 650; }
.remember-login small { color: #7c8980; font-size: 11px; }

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #21683e;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.login-button:hover {
  background: #185832;
  box-shadow: 0 8px 18px rgba(33, 104, 62, 0.2);
  transform: translateY(-1px);
}

.login-button:focus-visible {
  outline: 3px solid rgba(54, 128, 75, 0.35);
  outline-offset: 3px;
}

.button-arrow {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.access-note {
  margin: 24px 0 0;
  color: #7c8980;
  font-size: 12px;
  text-align: center;
}

.login-footer {
  margin-top: 46px;
  color: #8a958d;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 760px) {
  body.login-page {
    padding: 20px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    width: min(100%, 500px);
    min-height: 0;
  }

  .login-brand {
    min-height: 210px;
    padding: 26px 30px;
  }

  .brand-content {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 17px;
    align-items: center;
  }

  .brand-mark {
    grid-row: span 2;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 16px;
  }

  .brand-mark img {
    width: 36px;
    height: 44px;
  }

  .brand-eyebrow {
    align-self: end;
    margin: 0 0 4px;
    font-size: 9px;
  }

  .login-brand h1 {
    align-self: start;
    font-size: 30px;
  }

  .brand-description,
  .brand-caption,
  .brand-decoration {
    display: none;
  }

  .login-content {
    padding: 40px 30px 25px;
  }

  .login-heading {
    margin-bottom: 27px;
  }

  .login-heading h2 {
    font-size: 30px;
  }

  .login-footer {
    margin-top: 34px;
  }
}

@media (max-width: 380px) {
  body.login-page {
    padding: 12px;
  }

  .login-brand {
    padding-right: 22px;
    padding-left: 22px;
  }

  .login-content {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
