@font-face {
  font-family: Inter;
  src: url('../assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Match the login and signup scale on laptops, 1080p and 4K displays. */
  font-size: clamp(1rem, min(calc(1.666667vw - 0.5rem), 2.222222vh), 3rem);
  color-scheme: light;
  --accent: #364d46;
  --accent-hover: #273d36;
  --ink: #2c3631;
  --muted: #6d7169;
  --border: #d3d2c9;
  --paper: #f6f3ee;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); font-weight: 500; text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 0.1875rem; }
a:focus-visible, button:focus-visible { outline: 0.1875rem solid var(--accent); outline-offset: 0.25rem; }

.auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}
.visual {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4rem);
  background-color: #626a65;
  color: #fff;
}
.visual-copy h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.09375rem;
}
.visual-copy p { margin: 0; color: #f1f3f5; font-size: 1rem; line-height: 1.7; }
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 2.5rem clamp(2rem, 5vw, 5rem);
}
.panel-inner { width: 100%; max-width: 24rem; min-width: 0; }
.brand-logo { display: block; width: 13.75rem; max-width: 100%; height: auto; margin: 0 0 2.25rem; }
.title {
  margin: 0 0 1rem;
  font-size: 2.625rem;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.0875rem;
  text-wrap: balance;
}
.subtitle { margin: 0 0 2rem; color: var(--muted); font-size: 0.875rem; line-height: 1.65; overflow-wrap: anywhere; }
.field + .field { margin-top: 1.25rem; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.field-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; margin-bottom: 0.5rem; }
.field-heading label { margin: 0; }
.field-heading a { font-size: 0.75rem; }
input {
  display: block;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.875rem;
  border: 0.0625rem solid var(--border);
  border-radius: 0.375rem;
  background: #fffdf9;
  color: var(--ink);
}
input::placeholder { color: #767970; }
input:hover { border-color: #a3aaa0; }
input:focus { border-color: var(--accent); outline: 0.125rem solid var(--accent); outline-offset: 0.125rem; }
.field-help { margin: 0.375rem 0 0; font-size: 0.75rem; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.25rem; }
.eye {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--muted);
}
.eye:hover, .eye.active { background: #eeeee7; color: var(--accent); }
.eye svg { width: 1.25rem; height: 1.25rem; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 1rem;
  border: 0.0625rem solid var(--accent);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .65; cursor: wait; }
.form .btn { margin-top: 1.5rem; }
.form-error, .form-success, .msg {
  margin: 1.25rem 0 0;
  padding: 0.75rem;
  border: 0.0625rem solid;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.form-error, .msg.error { background: #fff3f2; border-color: #fecdca; color: #b42318; }
.form-success, .msg.ok { background: #edf4ee; border-color: #bbd4c1; color: #276047; }
.msg:empty { display: none; }
.signup { margin: 1.5rem 0 0; color: var(--muted); text-align: center; font-size: 0.8125rem; }
.signup a { display: inline-block; }
.signup a span { margin-right: 0.25rem; }

@media (min-width: 761px) {
  .visual {
    background-image: linear-gradient(180deg, transparent 35%, #17232c99 72%, #17232ce6 100%), url('../assets/images/tenant-reset-interior-v1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .visual { display: none; }
  .panel { padding: 3rem 2rem; }
}
@media (max-width: 480px) {
  .panel { padding: 2.5rem 1.5rem; }
  .brand-logo { width: 13rem; margin-bottom: 2rem; }
  .title { font-size: 2.375rem; }
}

/* Feedback uses the same spacing in every reset state. */
#stepVerifyError .form-error { margin: 1.5rem 0; }
#stepRequestDone .form-success { margin: 0; }
