:root {
  --ink: #132139;
  --sub: #667084;
  --green: #08783d;
  --green-dark: #126640;
  --line: #dfe5e1;
  --pale: #edf5ef;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: #fbfbfa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(330px, 45%) minmax(480px, 1fr);
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 42px clamp(42px, 7vw, 120px);
  background: #f2f7f2;
  border-right: 1px solid #dce5de;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--ink);
  font-size: 27px;
  font-weight: 780;
  letter-spacing: 0;
  text-decoration: none;
}

.brand i {
  width: 29px;
  height: 29px;
  color: var(--green);
  stroke-width: 2.3;
}

.brand b { color: var(--green); }

.brand-copy {
  max-width: 520px;
  margin: auto 0;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 500px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-copy > p:last-child {
  max-width: 420px;
  margin: 22px 0 0;
  color: #566575;
  font-size: 16px;
  line-height: 1.55;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #657262;
  font-size: 12px;
}

.privacy i {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 44px;
}

.login-card { width: min(420px, 100%); }

.login-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.login-heading p {
  margin: 8px 0 24px;
  color: var(--sub);
  font-size: 14px;
}

.provider-stack {
  display: grid;
  gap: 10px;
}

.provider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 44px;
  border: 1px solid #cfd8d1;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.provider:hover {
  border-color: #98afa0;
  background: #fafdfb;
}

.provider.google { border-color: #747775; }

.provider.apple {
  background: #18221e;
  color: #fff;
  border-color: #18221e;
}

.provider.apple:hover { background: #28332d; }

.provider-logo {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.apple-logo {
  left: 8px;
  width: 30px;
  height: 30px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  color: #7b8491;
  font-size: 11px;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8d1;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(8, 120, 61, .14);
  outline-offset: 1px;
}

.primary {
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.primary:hover { background: #056233; }

.account-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 19px;
}

.account-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-message {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #e1b4aa;
  border-radius: 5px;
  background: #fff8f7;
  color: #a03a2e;
  font-size: 12px;
  line-height: 1.4;
}

.auth-message.show { display: block; }

.auth-message.success {
  border-color: #b6d9bf;
  background: #f1faf3;
  color: #176739;
}

.terms {
  margin: 25px 0 0;
  color: #7a8491;
  font-size: 11px;
  line-height: 1.45;
}

.hide { display: none !important; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }

  .brand-panel {
    min-height: 235px;
    padding: 28px 28px 32px;
  }

  .brand-copy { margin: 42px 0 0; }
  .brand-copy h1 { font-size: 33px; }
  .brand-copy > p:last-child { display: none; }
  .privacy { display: none; }

  .login-panel {
    align-items: start;
    padding: 40px 24px 60px;
  }
}

@media (max-width: 430px) {
  .login-panel { padding: 32px 20px; }

  .account-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
