:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #233f32;
  background: #f4f5ef;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }

.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 35px;
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: min(1060px, 100%);
  min-height: 734px;
  background: white;
  border: 1px solid #e2e8d9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 80px #264b2910;
}

.auth-story {
  min-width: 0;
  min-height: 734px;
  background: #203f34;
  color: #f2f7e5;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 38px;
  position: relative;
  overflow: hidden;
}

.auth-brand {
  color: #e0edb0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}

.auth-eyebrow { font-size: 10px; letter-spacing: .12em; color: #bfd09f; }
.auth-story h1 { font-size: 46px; font-weight: 600; line-height: 1.06; letter-spacing: -1.8px; margin: 18px 0; }
.auth-story p { font-size: 14px; line-height: 1.8; color: #c6d5bd; max-width: 330px; }

.auth-story-image {
  display: block;
  width: calc(100% + 70px);
  height: 245px;
  min-height: 245px;
  flex: 0 0 245px;
  overflow: hidden;
  margin: auto -35px -35px;
}

.auth-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}

.auth-form-panel {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.auth-tabs { display: flex; background: #eff3e8; padding: 5px; gap: 5px; border-radius: 12px; }
.auth-tabs button { border: 0; background: none; padding: 11px; flex: 1; color: #718061; border-radius: 8px; font-size: 13px; }
.auth-tabs button[aria-selected="true"] { background: white; color: #294c38; box-shadow: 0 2px 7px #2b4a2510; }
.auth-form-panel h2 { font-size: 29px; letter-spacing: -1px; margin: 30px 0 10px; }
.auth-form-panel p { color: #728066; font-size: 13px; line-height: 1.7; }
#auth-form { margin-top: 27px; }
#auth-form label { display: block; font-size: 12px; font-weight: 600; margin: 18px 0; }
input { display: block; width: 100%; border: 1px solid #dce4d3; background: #fbfcf8; border-radius: 10px; min-height: 48px; padding: 12px 14px; margin-top: 8px; color: #233f32; }
input:focus { outline: 3px solid #d9e9ba; border-color: #839f63; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 70px; }
.password-wrap button { position: absolute; right: 8px; top: 8px; bottom: 8px; border: 0; background: transparent; color: #608147; font-size: 11px; }
.auth-primary { width: 100%; min-height: 49px; border: 0; background: #285a40; color: white; border-radius: 11px; font-weight: 600; margin-top: 12px; }
.auth-primary:hover { background: #1b442e; }
#auth-error { background: #fff1e9; border: 1px solid #ecd3c0; color: #904928; padding: 12px; border-radius: 9px; }
#setup-note { background: #edf4df; padding: 13px; border-radius: 10px; }
.auth-footnote { font-size: 11px !important; margin-top: 25px; }
#password-help { font-size: 11px; }

@media (max-width: 700px) {
  .auth-page { padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .auth-story { min-height: 0; padding: 25px; gap: 22px; }
  .auth-story h1 { font-size: 35px; margin: 10px 0; }
  .auth-story-image { display: none; }
  .auth-story p { margin: 0; }
  .auth-form-panel { padding: 27px; }
  .auth-form-panel h2 { margin-top: 25px; }
  .auth-story .auth-eyebrow { font-size: 8px; }
}

:focus-visible { outline: 3px solid #9fbc74; outline-offset: 3px; }
