:root {
  --bg: #f4f5f2;
  --paper: #ffffff;
  --ink: #161a18;
  --muted: #69706c;
  --line: #dce0dc;
  --green: #174f43;
  --green-hover: #103c33;
  --soft: #e8f0ec;
  --danger: #a83b35;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.auth-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.site-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.auth-main {
  display: grid;
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
  padding: 56px 0;
}

.auth-intro h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid #cad8d1;
  color: #31574d;
  background: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.auth-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(28, 39, 34, 0.1);
}

.auth-panel h2 {
  margin: 0;
  font-size: 25px;
}

form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #434944;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #cfd5d0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(23, 79, 67, 0.12);
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

button:hover {
  background: var(--green-hover);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-error {
  margin: -4px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.forgot-link {
  width: fit-content;
  margin-top: -9px;
  justify-self: end;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.auth-message {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #cad8d1;
  background: var(--soft);
}

.auth-message strong {
  font-size: 18px;
}

.auth-message p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-message a {
  width: fit-content;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.new-account {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.new-account a {
  color: var(--green);
  font-weight: 750;
}

@media (max-width: 820px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 36px;
    align-content: center;
  }

  .auth-intro h1 {
    font-size: 38px;
  }
}

@media (max-width: 520px) {
  .auth-header {
    padding: 0 16px;
  }

  .auth-main {
    width: calc(100% - 28px);
    padding: 32px 0;
  }

  .auth-intro h1 {
    font-size: 32px;
  }

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