/* Property owner registration.
   A three step form on the brand palette: blue ground, white card, yellow for
   the one action that moves the owner forward. Sits on the shared
   auth-center-shell (see auth-center.css), same as /owner/login and
   /customer/register - only the card's own contents belong to this file. */

.owner-register-page {
  --reg-blue: #0057b8;
  --reg-blue-dark: #003f88;
  --reg-blue-deep: #002a5c;
  --reg-blue-light: #e7f1ff;
  --reg-yellow: #ffc928;
  --reg-yellow-dark: #e8ad00;
  --reg-ink: #102a43;
  --reg-muted: #55677d;
  --reg-line: #d8e2ee;
  --reg-danger: #b3261e;
  --reg-radius: 14px;
  min-height: 100vh;
  color: var(--reg-ink);
  background: #fff;
}

/* ----------------------------------------------------------------- card --- */
/* Single centered card on the auth-center-shell background, matching
   /owner/login and /customer/register instead of a two-panel split. */

.reg-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid var(--reg-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(16 42 67 / 12%);
  animation: authCardIn .55s .05s cubic-bezier(.2, .7, .3, 1) both;
}

.reg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reg-back { position: relative; padding-left: 20px; color: var(--reg-muted); font-size: .85rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.reg-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: currentColor;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.4 2.6 8.5 3.7 5 7.2h9v1.6H5l3.5 3.5-1.1 1.1L2 8z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.reg-back:hover { color: var(--reg-blue); }
.reg-badge { padding: 6px 10px; border-radius: 999px; color: var(--reg-blue-dark); background: var(--reg-blue-light); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }

.reg-card h2 { margin: 26px 0 6px; font: 500 clamp(1.75rem, 2.6vw, 2.15rem)/1.15 Georgia, serif; letter-spacing: -.02em; }
.reg-sub { margin: 0; color: var(--reg-muted); font-size: .9rem; }
.reg-login-link { color: var(--reg-blue); font-weight: 750; text-decoration: none; }
.reg-login-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- steps --- */

.reg-steps { margin: 26px 0 22px; }
.reg-progress { height: 5px; border-radius: 999px; background: var(--reg-blue-light); overflow: hidden; }
.reg-progress-fill { display: block; width: 33.33%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--reg-yellow), var(--reg-yellow-dark)); transition: width .32s ease; }

.reg-step-chips { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reg-chip {
  min-height: 44px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--reg-muted);
  font: inherit;
  font-size: .82rem;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.reg-chip:hover { background: var(--reg-blue-light); color: var(--reg-blue-dark); }
.reg-chip-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--reg-line);
  border-radius: 50%;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.reg-chip-label { font-weight: 650; }
.reg-chip.is-active { color: var(--reg-blue-dark); }
.reg-chip.is-active .reg-chip-dot { border-color: var(--reg-blue); background: var(--reg-blue); color: #fff; }
/* Done steps read as done by shape (tick) as well as colour. */
.reg-chip.is-done .reg-chip-dot {
  border-color: var(--reg-yellow-dark);
  background: var(--reg-yellow) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23003f88'%3E%3Cpath d='M8.2 13.4 5 10.2l1.2-1.2 2 2 5-5L14.4 7z'/%3E%3C/svg%3E") center/15px no-repeat;
  color: transparent;
}

/* ---------------------------------------------------------------- alert --- */

.reg-alert {
  margin: 0 0 20px;
  padding: 12px 14px 12px 40px;
  position: relative;
  border-left: 3px solid var(--reg-danger);
  border-radius: 9px;
  color: #8b2828;
  background: #fdecea;
  font-size: .87rem;
  line-height: 1.5;
}
.reg-alert::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 15px;
  width: 16px;
  height: 16px;
  background: var(--reg-danger);
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm.8 10.6H7.2v-1.6h1.6zm0-3H7.2V4h1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.reg-alert.is-hidden { display: none; }

.reg-alert-notice { border-left-color: #1d7a4c; color: #14532d; background: #e9f7ee; }
.reg-alert-notice::before { background: #1d7a4c; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.4 3 8.2l1.2-1.2 2 2 5-5L12.4 5z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ------------------------------------------------------ verify + documents --- */

.reg-verify-form, .reg-documents-form, .reg-review-panel { display: grid; gap: 16px; }
.reg-review-panel .reg-button { text-decoration: none; text-align: center; }
.reg-selected { margin-bottom: 2px; padding: 11px 12px; display: grid; gap: 2px; border-radius: 10px; color: var(--reg-ink); background: var(--reg-blue-light); font-size: .8rem; }
.reg-selected strong { overflow-wrap: anywhere; font-size: .9rem; }

.reg-resend-form { margin-top: -6px; }
.reg-resend-button { padding: 0; border: 0; color: var(--reg-blue); background: none; font: inherit; font-size: .82rem; font-weight: 700; text-decoration: underline; cursor: pointer; }

.reg-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg-upload { position: relative; }
.reg-upload.is-wide { grid-column: 1 / -1; }

/* The real input stays focusable for the keyboard but the label is the target. */
.reg-file { position: absolute; width: 1px; height: 1px; opacity: 0; }

.reg-drop {
  position: relative;
  min-height: 120px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  border: 1.5px dashed var(--reg-line);
  border-radius: var(--reg-radius);
  background: #f7fafd;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.reg-drop::before {
  content: "";
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  background: #9fb0c2;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 7.5 7.5 8.9 8.9 11 6.8V16h2V6.8l2.1 2.1 1.4-1.4zM5 18v-4H3v6h18v-6h-2v4z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: background .18s ease;
}
.reg-drop:hover, .reg-upload.is-over .reg-drop { border-color: var(--reg-blue); background: var(--reg-blue-light); }
.reg-drop:hover::before { background: var(--reg-blue); }
.reg-file:focus-visible + .reg-drop { outline: 2px solid var(--reg-blue); outline-offset: 2px; }

.reg-drop-title { color: var(--reg-ink); font-size: .8rem; font-weight: 700; }
.reg-drop-note { color: var(--reg-muted); font-size: .72rem; }

.reg-thumb { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Once a picture is in place it fills the tile and the prompt sits on top. */
.reg-upload.has-image .reg-drop { border-style: solid; border-color: var(--reg-blue); background: var(--reg-blue-deep); }
.reg-upload.has-image .reg-thumb { display: block; }
.reg-upload.has-image .reg-drop::before { display: none; }
.reg-upload.has-image .reg-drop-title,
.reg-upload.has-image .reg-drop-note { position: relative; padding: 1px 7px; border-radius: 3px; color: #fff; background: rgb(0 42 92 / 72%); }
.reg-upload.has-image .reg-drop-title { font-size: .74rem; }
.reg-upload.has-image .reg-drop-note { font-size: .68rem; }

.reg-upload.is-busy .reg-drop { opacity: .6; cursor: progress; }

.reg-remove {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: var(--reg-danger);
  background: rgb(255 255 255 / 92%);
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.reg-upload.has-image .reg-remove { display: block; }
.reg-remove:hover { background: #fff; }

.reg-privacy { margin: 0; color: var(--reg-muted); font-size: .76rem; line-height: 1.55; }

@media (max-width: 420px) {
  .reg-uploads { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- form --- */

.reg-form { display: grid; gap: 0; margin: 0; }
.reg-panel { margin: 0; padding: 0; border: 0; display: grid; gap: 18px; }
.reg-legend { padding: 0; margin: 0 0 2px; color: var(--reg-ink); font: 750 1rem/1.3 inherit; }
/* Without the script every step stays on the page and the legends label them. */
.reg-form.is-stepped .reg-legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reg-form.is-stepped .reg-panel { display: none; }
.reg-form.is-stepped .reg-panel.is-current { display: grid; animation: reg-panel-in .28s ease both; }
.reg-form:not(.is-stepped) .reg-panel + .reg-panel { margin-top: 26px; }

@keyframes reg-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reg-field { display: grid; gap: 6px; min-width: 0; }
.reg-field label { color: var(--reg-ink); font-size: .85rem; font-weight: 700; }

/* "Optional" belongs in the label, not the placeholder: a placeholder is gone
   the moment somebody types, and a screen reader reading the field back never
   says it at all. */
.reg-optional {
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--reg-muted);
  background: #eef2f7;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.reg-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1.5px solid var(--reg-line);
  border-radius: var(--reg-radius);
  color: var(--reg-ink);
  background: #fff;
  font: inherit;
  font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.reg-input::placeholder { color: #93a3b6; }
.reg-input:hover { border-color: #b9c9dd; }
.reg-input:focus {
  outline: none;
  border-color: var(--reg-blue);
  box-shadow: 0 0 0 4px rgb(0 87 184 / 15%);
}
.reg-input[aria-invalid="true"] { border-color: var(--reg-danger); background: #fffafa; }
.reg-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(179 38 30 / 14%); }

.reg-select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2355677d'%3E%3Cpath d='M4.5 6.2 8 9.7l3.5-3.5 1 1L8 11.7 3.5 7.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.reg-select:disabled { color: #93a3b6; background-color: #f4f7fb; cursor: not-allowed; }

.reg-hint { margin: 0; color: var(--reg-muted); font-size: .78rem; line-height: 1.5; }
.reg-error { margin: 0; color: var(--reg-danger); font-size: .78rem; font-weight: 600; line-height: 1.45; }
.reg-error:empty { display: none; }

/* Reveal button sits inside the field, clear of the 44px target rule. */
.reg-password { position: relative; display: flex; }
.reg-password .reg-input { padding-right: 74px; }
.reg-reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 58px;
  min-height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: var(--reg-blue);
  background: var(--reg-blue-light);
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.reg-reveal:hover { background: #d5e6fd; }
.reg-reveal:focus-visible { outline: 3px solid rgb(0 87 184 / 35%); outline-offset: 2px; }

.reg-strength { height: 5px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.reg-strength-bar { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--reg-danger); transition: width .25s ease, background .25s ease; }
.reg-strength-bar.is-fair { background: var(--reg-yellow-dark); }
.reg-strength-bar.is-good { background: var(--reg-blue); }
.reg-strength-bar.is-strong { background: #1d7a4c; }

.reg-terms { margin: 2px 0 0; color: var(--reg-muted); font-size: .78rem; line-height: 1.55; }
.reg-terms a { color: var(--reg-blue); font-weight: 650; text-decoration: none; }
.reg-terms a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- actions --- */

.reg-actions { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.reg-button {
  min-height: 50px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.reg-next, .reg-submit { flex: 1; color: var(--reg-blue-dark); background: var(--reg-yellow); box-shadow: 0 8px 20px rgb(255 201 40 / 34%); }
.reg-next:hover, .reg-submit:hover { background: var(--reg-yellow-dark); }
.reg-back-button { color: var(--reg-blue-dark); background: var(--reg-blue-light); }
.reg-back-button:hover { background: #d5e6fd; }
.reg-button:focus-visible { outline: 3px solid rgb(0 42 92 / 45%); outline-offset: 2px; }
.reg-button[hidden] { display: none; }
.reg-submit[aria-busy="true"] { color: rgb(0 63 136 / 60%); cursor: progress; }

.reg-switch { margin-top: 26px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e9eef5; color: var(--reg-muted); font-size: .82rem; }
.reg-switch a { color: var(--reg-blue); font-weight: 750; text-decoration: none; }
.reg-switch a:hover { text-decoration: underline; }

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .reg-card { padding: 24px 18px; border-radius: 16px; }
  .reg-card h2 { margin-top: 22px; }
}

@media (max-width: 560px) {
  .reg-row { grid-template-columns: 1fr; }
  .reg-chip-label { display: none; }
  .reg-chip { justify-content: center; }
  .reg-actions { flex-wrap: wrap; }
  .reg-next, .reg-submit { width: 100%; flex: 1 0 100%; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .owner-register-page *,
  .owner-register-page *::before,
  .owner-register-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
