/* Login page custom styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}
.login-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  min-width: 320px;
  text-align: center;
}
.login-card h2 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-dark);
  font-size: 1rem;
}
.login-card button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.login-card button:hover {
  background: var(--teal-light);
}

/* ============================================================
   REGISTRATION WIZARD
   ============================================================ */

/* Outer wrapper — overrides theme.css overflow:hidden */
.wizard-page { overflow: auto !important; }

.wizard-outer {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image: url('../assets/images/Register.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2.5rem 1rem;
}

.wizard-card {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
}

/* ── Header ── */
.wizard-header {
  background: #0d0d0d;
  border-bottom: 2px solid var(--teal);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.wizard-logo span { color: var(--teal); }

/* ── Progress dots ── */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
}
.prog-step { display: flex; align-items: flex-start; }
.prog-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prog-label {
  font-size: 0.68rem;
  color: #555;
  margin-top: 0.22rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.prog-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #333;
  background: #1a1a1a;
  color: #555;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.prog-dot.active  { border-color: var(--teal); background: var(--teal); color: #fff; }
.prog-dot.done    { border-color: var(--teal); background: transparent;  color: var(--teal); }
.prog-line {
  width: 28px; height: 2px;
  background: #333;
  margin-top: 13px;
  transition: background 0.25s;
}
.prog-line.done { background: var(--teal); }

/* ── Body / Steps ── */
.wizard-body { padding: 2rem; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.step-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.step-sub {
  font-size: 0.88rem;
  color: var(--text-label);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

/* ── Step 1: Welcome ── */
.welcome-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1.4rem;
}
.welcome-checklist { list-style: none; margin-bottom: 2rem; }
.welcome-checklist li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 0.93rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-panel);
}
.welcome-checklist li:last-child { border-bottom: none; }
.check-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Org avatar preview ── */
.org-avatar-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.4rem; }
.org-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #1a8f7a;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  transition: background 0.3s;
  letter-spacing: 1px;
  user-select: none;
}
.org-avatar-hint { font-size: 0.75rem; color: var(--text-label); }

/* ── Form fields ── */
.wizard-field { margin-bottom: 1rem; }
.wizard-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wizard-field input,
.wizard-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-dark);
  font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.wizard-field input:focus,
.wizard-field textarea:focus { border-color: var(--teal); }
.wizard-field .field-err {
  font-size: 0.76rem;
  color: var(--accent-red);
  margin-top: 0.25rem;
  display: none;
}
.wizard-field.has-error input,
.wizard-field.has-error textarea  { border-color: var(--accent-red); }
.wizard-field.has-error .field-err { display: block; }

/* ── Color swatches ── */
.color-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.color-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  position: relative;
  transition: transform 0.15s;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected::after {
  content: '\2713';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  pointer-events: none;
}

/* ── Worker rows ── */
.worker-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  max-height: 300px;
  overflow-y: auto;
}
.worker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 0.75rem 2rem 0.75rem 0.75rem;
  position: relative;
}
.worker-row input {
  width: 100%;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--border-panel);
  border-radius: 5px;
  background: var(--bg-input);
  color: var(--text-dark);
  font-size: 0.83rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.worker-row input:focus { border-color: var(--teal); }
.worker-row input::placeholder { color: #aaa; font-size: 0.8rem; }
.worker-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}
.worker-remove:hover { color: var(--accent-red); }
.btn-add-worker {
  width: 100%;
  background: none;
  border: 1px dashed var(--teal);
  color: var(--teal);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.87rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s;
}
.btn-add-worker:hover { background: var(--teal-dim); }

/* ── Navigation ── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-panel);
}
.btn-back {
  background: none;
  border: 1px solid var(--border-panel);
  color: var(--text-label);
  border-radius: 6px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: #888; color: var(--text-dark); }
.btn-next {
  background: var(--teal);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-next:hover { background: var(--teal-light); }
.btn-skip {
  background: none;
  border: none;
  color: var(--text-label);
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  padding: 0;
}
.btn-skip:hover { color: var(--text-dark); }

/* ── Error banner ── */
.wizard-error-banner {
  background: rgba(192,57,43,0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.wizard-error-banner ul { padding-left: 1.2rem; margin: 0.3rem 0 0; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .wizard-body { padding: 1.4rem; }
  .worker-row { grid-template-columns: 1fr; padding-right: 2rem; }
}
