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

:root {
  /* The same proportional desktop and 4K scale as the login page. */
  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, .terms input: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;
}
.register-visual {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-end;
  align-self: start;
  height: 100vh;
  height: 100svh;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4rem);
  background-color: #626a65;
  color: #fff;
}
.register-intro 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;
}
.register-intro 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: 2rem 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 1.75rem; }
.title {
  margin: 0 0 0.625rem;
  font-size: 2.25rem;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.075rem;
  text-wrap: balance;
}
#registrationTitle:focus { outline: none; }
.subtitle { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }

.register-steps { display: flex; gap: 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.register-steps li { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.register-steps li span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: 0 0 auto; border: 0.0625rem solid var(--border); border-radius: 50%; }
.register-steps li[aria-current="step"] { color: var(--accent); }
.register-steps li[aria-current="step"] span { background: var(--accent); border-color: var(--accent); color: #fff; }
.register-steps li.completed span { background: #e5ebe4; border-color: #c8d4c8; color: var(--accent); }

.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.field { min-width: 0; }
#accountStep .field + .field { margin-top: 1rem; }
.field label { display: block; margin-bottom: 0.5rem; font-size: 0.8125rem; font-weight: 500; }
.field label span { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.field 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);
}
.field input::placeholder { color: #767970; }
.field input:hover { border-color: #a3aaa0; }
.field input:focus { border-color: var(--accent); outline: 0.125rem solid var(--accent); outline-offset: 0.125rem; }
.field-help { margin: 0.375rem 0 0; color: var(--muted); font-size: 0.75rem; }
.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; }

.register-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
.register-field-full { grid-column: 1 / -1; }
.register-fields .field label { margin-bottom: 0.375rem; }
.register-fields .field input { min-height: 2.875rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; }
.step-profile:not(.step-code) { max-width: 27rem; }
.step-profile .brand-logo { margin-bottom: 1.25rem; }
.step-profile .subtitle { margin-bottom: 1rem; }
.step-profile .register-steps { margin-bottom: 1rem; }
.terms { display: flex; align-items: flex-start; gap: 0.625rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; cursor: pointer; }
.terms input { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin: 0.1875rem 0 0; accent-color: var(--accent); cursor: pointer; }
.terms a { text-decoration: underline; text-underline-offset: 0.1875rem; }
.register-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  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;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { width: auto; flex: 0 0 auto; min-width: 6rem; border-color: var(--border); background: transparent; color: var(--accent); }
.btn-secondary:hover:not(:disabled) { background: #eae9e1; }
.btn:disabled { opacity: .65; cursor: wait; }
.signup { margin: 1.25rem 0 0; color: var(--muted); text-align: center; font-size: 0.8125rem; }
.signup a { display: inline-block; }

.msg { margin: 1rem 0 0; padding: 0.75rem; border: 0.0625rem solid; border-radius: 0.375rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.error { color: #b42318; background: #fff3f2; border-color: #fecdca; }
.msg.ok { color: #276047; background: #edf4ee; border-color: #bbd4c1; }
#codeStep { display: none; }
.panel-inner.step-code > :not(.brand-logo):not(#codeStep) { display: none; }
.panel-inner.step-code #codeStep { display: block; }
#code { letter-spacing: 0.35em; text-align: center; font-size: 1.5rem; font-weight: 500; }
#verify .btn { margin-top: 1.25rem; }

@media (min-width: 761px) {
  .register-visual {
    background-image: linear-gradient(180deg, transparent 35%, #17232c99 72%, #17232ce6 100%), url('../assets/images/register-interior-v1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .panel { padding-inline: 1.75rem; }
  .register-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .register-visual { display: none; }
  .panel { padding: 2.5rem 2rem; }
}
@media (max-width: 480px) {
  .panel { padding: 2.5rem 1.5rem; }
  .brand-logo { width: 13rem; }
  .title { font-size: 2.125rem; }
  .register-fields { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .register-fields .field input { font-size: 1rem; min-height: 3.125rem; }
  .register-steps { gap: 1rem; }
  .register-steps li { gap: 0.375rem; }
}
