/* ©HomeHub LLC 2026 */
/* Create-a-workspace wizard. Uses the --lg-* colors from login.css and the theme variables from nav.css,
   so light and dark mode stay in step with the rest of the app. Load it AFTER login.css. */

.step[hidden] { 
    display: none;
}

/* Progress bar: one segment per step */
.ws-steps {
  list-style: none;
  display: flex;
  gap: 6px;
  max-width: 420px;
  margin: 16px auto 0;
  padding: 0;
}
.ws-steps li {
  flex: 1;
  display: grid;
  gap: 6px;
  font: 500 10px var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lg-muted);
}
.ws-steps li::before {
  content: "";
  height: 4px;
  border-radius: 2px;
  background: var(--lg-line);
  transition: background .25s;
}
.ws-steps li.is-done::before,
.ws-steps li.is-current::before { 
    background: var(--accent); 
}
.ws-steps li.is-current { 
    color: var(--lg-text); 
}
/* People joining an existing workspace skip these two steps */
.ws-steps.is-invitee li[data-s="workspace"],
.ws-steps.is-invitee li[data-s="invite"] { 
    display: none; 
}

/* Hint and error text under fields */
.f-hint {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lg-muted);
}
.f-err {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}
.f-err:empty { 
    display: none; 
}
.ws-form input[aria-invalid="true"],
.ws-form textarea[aria-invalid="true"] { 
    border-color: var(--danger); 
}
.ws-form .lbl {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--lg-muted);
}

/* Fields outside a .login-form (the done screen) look the same as the form fields */
.ws-form .f { 
    display: grid; 
    gap: 6px; 
}
.ws-form label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--lg-muted);
}
.ws-form input[readonly] {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  background: transparent;
  color: var(--lg-text);
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
}

/* Multi-line email box */
.ws-form textarea {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  padding: 10px 12px;
  background: transparent;
  color: var(--lg-text);
  border: 1px solid var(--lg-line);
  border-radius: 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px; /* 16px stops iPhone Safari from zooming in */
  resize: vertical;
}
.ws-form textarea:focus-visible { outline: 2px solid var(--lg-text); outline-offset: 1px; }

.login-links .link[disabled] { opacity: .5; cursor: default; }

/* Profile photo: the whole box is a label for the hidden file input, so clicking or dropping a file works */
.ws-form .photo-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed var(--lg-line);
  border-radius: 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  color: var(--lg-text);
  cursor: pointer;
}
.ws-form .photo-drop:hover,
.ws-form .photo-drop.is-over { border-color: var(--lg-text); }
.ws-form .photo-drop:focus-within { outline: 2px solid var(--lg-text); outline-offset: 1px; }
.ws-form .photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.photo-preview {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--lg-line);
  border-radius: 50%;
  overflow: hidden;
  font-size: 12px;
  text-align: center;
  color: var(--lg-muted);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-text { display: grid; gap: 2px; min-width: 0; }
.photo-text b { font-weight: 600; overflow-wrap: anywhere; }
.ws-form .photo-remove { width: auto; min-height: 36px; margin-left: auto; }