.auth-body {
  min-height: 100vh;
  min-height: 100svh;
  background: #f7f7f2;
}

.auth-layout {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.auth-side {
  min-width: 0;
  background: linear-gradient(145deg, #122d27, #165345);
  color: white;
  padding: 40px clamp(32px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  right: -160px;
  bottom: -190px;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.auth-side > .brand,
.auth-side > div {
  position: relative;
  z-index: 1;
}

.auth-side .brand strong,
.auth-side .eyebrow {
  color: #a7d5c3;
}

.auth-side > div {
  width: 100%;
  max-width: 640px;
  margin-block: auto;
  padding-block: 48px;
}

.auth-side h1 {
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 18px 0 24px;
}

.auth-side h1 em {
  font-family: "Newsreader", serif;
  font-weight: 600;
  color: #a7d5c3;
}

.auth-side p {
  color: #c2d3cd;
  font-size: 17px;
  line-height: 1.65;
  max-width: 44ch;
}

.auth-side ul {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #a7d5c3;
}

.auth-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  background: #f7f7f2;
  padding: 40px clamp(24px, 4vw, 64px);
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0f2ef;
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tabs button {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}

.auth-tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(20, 50, 42, .08);
}

.auth-form h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 8px 0 12px;
  overflow-wrap: break-word;
}

.auth-form > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0;
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 16px;
}

.auth-form input:not([type=checkbox]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(23, 108, 91, .1);
}

.auth-form small {
  color: var(--muted);
  font-weight: 400;
}

.check-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
  line-height: 1.5;
}

.check-label input {
  flex: none;
  margin-top: 3px;
}

.success-message {
  background: #e5f3ec;
  color: var(--green-dark);
  padding: 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 14px;
  overflow-wrap: anywhere;
}

.auth-footer {
  text-align: center;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.auth-footer a {
  color: var(--green);
  font-weight: 700;
}

.auth-text-button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
}

.auth-text-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.auth-form .form-error {
  color: var(--danger);
  background: var(--danger-bg);
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.auth-form .success-message {
  color: var(--green-dark);
  margin-top: 12px;
}

@media (max-width: 850px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-side {
    padding: 24px;
  }

  .auth-side > div,
  .auth-side::after {
    display: none;
  }

  .auth-panel {
    padding: 28px 20px;
    align-items: center;
  }

  .auth-card {
    padding: 28px 24px;
  }
}

@media (max-width: 380px) {
  .auth-side {
    padding: 20px;
  }

  .auth-panel {
    padding: 20px 12px;
  }

  .auth-card {
    padding: 24px 20px;
  }
}
