:root {
  color-scheme: light;
  --green: #187b57;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1b2821;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 40px 24px 20px;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(166, 212, 182, 0.28), transparent 34%),
    radial-gradient(ellipse at 92% 90%, rgba(24, 123, 87, 0.09), transparent 30%),
    #f3f6f3;
}

.auth-shell {
  width: min(100%, 1020px);
}

.auth-card {
  display: grid;
  min-height: 580px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(29, 41, 36, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(24, 50, 37, 0.14);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 38px 40px 30px;
  background: linear-gradient(145deg, #163f30, #145a3e 52%, #187b57);
  color: #fff;
}

.auth-brand {
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.auth-brand .brand-logo,
.auth-mobile-brand .brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 39px;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.auth-brand-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.65px;
}

.auth-brand-name small {
  display: block;
  margin-top: 4px;
  color: #b7d9c4;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.4px;
}

.auth-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 350px;
  margin: auto 0;
  padding: 70px 0;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.auth-showcase-copy .eyebrow {
  color: #b7e2c6;
  letter-spacing: 1.8px;
}

.auth-showcase-copy h1 {
  margin: 17px 0 15px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 39px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -1.1px;
}

.auth-showcase-copy p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: 14px;
  line-height: 1.75;
}

.auth-showcase-orbit {
  position: absolute;
  right: -104px;
  bottom: 88px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.auth-showcase-orbit::before,
.auth-showcase-orbit::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.auth-showcase-orbit::before {
  inset: 30px;
}

.auth-showcase-orbit::after {
  inset: 65px;
}

.auth-showcase-orbit-two {
  right: -194px;
  bottom: -5px;
}

.auth-showcase-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 11px;
}

.auth-showcase-footer svg {
  width: 15px;
  height: 15px;
  fill: #b7e2c6;
}

.auth-form-panel {
  display: grid;
  align-items: center;
  padding: 60px clamp(34px, 6vw, 76px);
}

.auth-form-content {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-mobile-brand {
  display: none;
}

.auth-form-heading {
  margin-bottom: 30px;
}

.auth-form-heading .eyebrow {
  color: var(--green);
}

.auth-form-heading h2 {
  margin: 10px 0 8px;
  color: #1d2924;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.45px;
}

.auth-form-heading p {
  margin: 0;
  color: #78847d;
  font-size: 13px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid #f1aeb5;
  border-radius: 9px;
  background: #f8d7da;
  color: #842029;
  font-size: 12px;
}

.auth-alert svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: currentColor;
}

.auth-alert ul {
  margin: 0;
  padding-left: 16px;
}

.auth-form {
  display: grid;
  gap: 19px;
}

.auth-field label {
  display: inline-block;
  margin-bottom: 8px;
  color: #35433b;
  font-size: 12px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  width: 16px;
  height: 16px;
  fill: #829088;
  transform: translateY(-50%);
}

.auth-input-wrap input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 11px 14px 11px 43px;
  border: 1px solid #dfe7e1;
  border-radius: 9px;
  outline: none;
  background: #fbfcfb;
  color: #24342b;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input-wrap input::placeholder {
  color: #a0aaa4;
}

.auth-input-wrap input:focus {
  border-color: #4b9a72;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 123, 87, 0.11);
}

.auth-submit {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(105deg, #176e4c, #21845e);
  box-shadow: 0 8px 18px rgba(24, 123, 87, 0.2);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-submit:hover {
  background: linear-gradient(105deg, #125d43, #176e4c);
  box-shadow: 0 10px 22px rgba(24, 123, 87, 0.26);
  transform: translateY(-1px);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(24, 123, 87, 0.3);
  outline-offset: 3px;
}

.auth-submit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.18s ease;
}

.auth-submit:hover svg {
  transform: translateX(3px);
}

.auth-install {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
  border: 1px solid #cddfd3;
  border-radius: 9px;
  background: #f4f8f5;
  color: #176e4c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-install[hidden] {
  display: none;
}

.auth-install:hover {
  border-color: #187b57;
  background: #eaf4ed;
  color: #125d43;
}

.auth-install:focus-visible {
  outline: 3px solid rgba(24, 123, 87, 0.3);
  outline-offset: 3px;
}

.auth-install svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.auth-form-footnote {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  margin: 26px 0 0;
  color: #87928b;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.auth-form-footnote svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  fill: var(--green);
}

.auth-copyright {
  margin: 17px 0 0;
  color: #89948d;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-align: center;
}

.auth-copyright span {
  margin: 0 5px;
  color: #b0bbb4;
}

@media (max-width: 760px) {
  .login-body {
    padding: 24px 18px 16px;
  }

  .auth-shell {
    max-width: 520px;
  }

  .auth-card {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .auth-showcase {
    min-height: 205px;
    padding: 24px 28px;
  }

  .auth-showcase-copy {
    max-width: 360px;
    margin: 27px 0 0;
    padding: 0;
  }

  .auth-showcase-copy h1 {
    margin: 9px 0 6px;
    font-size: 25px;
    letter-spacing: -0.6px;
  }

  .auth-showcase-copy p {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.55;
  }

  .auth-showcase-footer,
  .auth-showcase-orbit {
    display: none;
  }

  .auth-form-panel {
    padding: 34px 34px 30px;
  }

  .auth-form-heading {
    margin-bottom: 23px;
  }
}

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

  .auth-card {
    border-radius: 15px;
  }

  .auth-showcase {
    min-height: 178px;
    padding: 19px 20px;
  }

  .auth-brand .brand-logo,
  .auth-mobile-brand .brand-logo {
    width: 56px;
    height: 34px;
    border-radius: 6px;
  }

  .auth-showcase-copy {
    margin-top: 22px;
  }

  .auth-showcase-copy h1 {
    font-size: 22px;
  }

  .auth-form-panel {
    padding: 27px 20px 24px;
  }

  .auth-form-heading h2 {
    font-size: 23px;
  }

  .auth-form {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input-wrap input,
  .auth-submit,
  .auth-submit svg {
    transition: none;
  }
}
