/* Compact registration layout restored from the first Hollowbrook version. */
body[data-hbp-page="register"]{font-family:var(--font)}
body[data-hbp-page="register"] h1{font-family:var(--font);font-style:italic;letter-spacing:-.01em}
.reg-page{max-width:none;margin:0;padding:0}
.reg-top{margin-bottom:0}
.reg-wrap{display:block;gap:0}
.reg-banner{top:auto;text-align:left;background:var(--surface)}
.reg-banner img{max-width:none;margin:0;mix-blend-mode:normal}
.reg-form .field,.reg-form .check,.reg-form .divider,.reg-form .reg-foot,.reg-form .reg-note,.reg-form .registration-disclosure,.reg-form .form-msg,.reg-form .service-notice{margin:0}
.reg-form .field>span{margin-bottom:0}
.reg-form .divider{text-transform:none;letter-spacing:0}
.reg-form .registration-disclosure{padding-top:0;border:0}
.reg-form .service-notice{font-size:13px}
.reg-banner .grad-text{background:var(--grad-cta);background-clip:text;-webkit-background-clip:text;color:transparent}
:root { --accent-link: #f5f100; }
.reg-page { min-height: 100vh; display: flex; flex-direction: column; }
.reg-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 0;
  min-height: 90px;
}
.reg-back {
  position: absolute;
  left: 72px;
  top: 40px;
  font-size: 22px;
  padding: 9px 20px 9px 16px;
}
.reg-back svg { width: 20px; height: 20px; }
.reg-top h1 { font-size: 34px; font-weight: 500; text-transform: none; }
.reg-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 16px 64px; flex: 1; }
.reg-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  min-height: 140px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 24px;
}
.reg-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reg-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(2,13,7,.95) 0%, rgba(2,13,7,.7) 55%, rgba(2,13,7,.1) 100%);
}
.reg-banner .t1 { font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; }
.reg-banner .t2 { font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.05; }
.reg-banner .t3 { font-size: 13px; color: var(--neutral-90); margin-top: 6px; }

.reg-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-muted); }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--overlay-16);
  background: var(--neutral-10);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f6f5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field select:invalid { color: var(--text-40); }
.field option { color: var(--neutral-0); }
.field input::placeholder { color: var(--text-64); }
.field input:focus, .field select:focus { border-color: var(--primary-50); box-shadow: 0 0 0 3px rgba(65, 249, 153, .15); }
.field.has-error input, .field.has-error select { border-color: #ff8a8a; }
.field .err { font-size: 12px; color: #ff8a8a; min-height: 0; }

.divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--overlay-16); }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--neutral-98, #dce5e0);
  cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  border: 1px solid var(--neutral-70); border-radius: 4px; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--primary-50); border-color: var(--primary-50); }
.check input:checked::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--neutral-0); border-bottom: 2px solid var(--neutral-0);
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible { outline: 2px solid var(--secondary-50); outline-offset: 2px; }
.check a { color: var(--accent-link); text-decoration: none; }
.check a:hover { text-decoration: underline; }

.btn-block { width: 100%; height: 50px; font-size: 22px; }
.btn-primary:disabled {
  background: var(--overlay-16);
  color: var(--text-64);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.reg-foot { text-align: center; font-size: 14px; }
.reg-foot a { color: var(--accent-link); text-decoration: none; }
.reg-note { text-align: center; font-size: 12px; color: var(--text-40); }
.registration-disclosure { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.registration-disclosure a { color: var(--accent-link); text-decoration: underline; }

@media (max-width: 860px) {
  .reg-top { flex-direction: column; gap: 20px; padding-top: 20px; }
  .reg-back { position: static; align-self: flex-start; font-size: 18px; }
  .reg-top h1 { font-size: 30px; }
  .reg-wrap { padding-top: 20px; }
}

/* Password field with show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--neutral-70); cursor: pointer;
  display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text); background: var(--overlay-08); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle[aria-pressed="true"] { color: var(--primary-50); }
.pw-hint { font-size: 12px; color: var(--text-40); }
.field.has-error .pw-hint { color: #ff8a8a; }

/* Keep supporting text legible against the dark surface. */
.reg-note,.pw-hint{color:var(--text-muted)}
.reg-banner .t1{font-size:22px}
.reg-banner .t2{font-size:34px}
.reg-banner .t3{max-width:31ch}
.reg-back{font-family:var(--font);font-style:italic}
.reg-form .btn-primary:disabled{opacity:1}
.reg-form .field input:disabled{opacity:.65}
@media(max-width:540px){.reg-back{font-size:15px}.reg-top h1{font-size:30px}.reg-banner img{max-width:none;margin:0}}
body[data-hbp-page="register"]{line-height:1.5}
.reg-page .btn{font-style:italic;font-weight:500}
