/* ─────────────────────────────────────────────────────────────
   pages/setup.css — first-time setup wizard
   Reuses login overlay aesthetics with a wider card to fit 4 fields.
   ───────────────────────────────────────────────────────────── */

.setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: none;             /* JS toggles to flex */
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.setup-card {
  background: var(--w);
  border: 1px solid var(--b1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
}

.setup-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--a);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.setup-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--t1);
  margin: 0 0 6px;
}
.setup-title span {
  color: var(--a);
}

.setup-sub {
  text-align: center;
  color: var(--t3);
  font-size: 13px;
  margin: 0 0 24px;
}

.setup-field {
  margin-bottom: 14px;
}
.setup-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 6px;
}
.setup-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--b1);
  border-radius: 8px;
  background: var(--bg);
  color: var(--t1);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.setup-field input:focus {
  outline: none;
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.setup-strength {
  margin-top: 6px;
}
.setup-strength-bar {
  width: 100%;
  height: 4px;
  background: var(--b1);
  border-radius: 2px;
  overflow: hidden;
}
.setup-strength-bar > div {
  height: 100%;
  width: 0%;
  background: #dc2626;
  transition: width 0.2s, background 0.2s;
}
#setup-strength-label {
  font-size: 11px;
  color: var(--t3);
  margin-top: 4px;
}

.setup-btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--a);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.setup-btn:hover:not(:disabled) {
  opacity: 0.92;
}
.setup-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.setup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.setup-err {
  color: var(--r, #dc2626);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  min-height: 16px;
}

.setup-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--g, #16a34a);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
#setup-success h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--t1);
  margin: 0 0 8px;
}
#setup-success p {
  color: var(--t3);
  font-size: 13px;
  margin: 0;
}
