/* ============================================================
   PROJECT MANHATTAN — register.css
   Font: Poppins | Primary: #1a6fdb
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', 'DM Sans', sans-serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.register-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ── LEFT PANEL ──────────────────────────────────────────── */
.register-left {
  background: #0f0f1e;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.register-left::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,111,219,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.register-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: 60px;
}

.register-project {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #4a4e7a;
}

.register-manhattan {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.register-left-content { flex: 1; }

.register-left-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.register-left-content > p {
  font-size: 14px;
  color: #6b7080;
  line-height: 1.7;
  margin-bottom: 40px;
}

.register-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.register-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.register-feature-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(26,111,219,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-feature h3 {
  font-size: 13px;
  font-weight: 600;
  color: #e0e2f0;
  margin-bottom: 3px;
}

.register-feature p {
  font-size: 12px;
  color: #4a4e7a;
  line-height: 1.5;
}

.register-left-footer {
  font-size: 11px;
  color: #2a2a4a;
  margin-top: 40px;
}

/* ── RIGHT PANEL ─────────────────────────────────────────── */
.register-right {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.register-form-wrap {
  width: 100%;
  max-width: 440px;
}

/* ── STEP INDICATOR ──────────────────────────────────────── */
.register-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.register-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
  gap: 4px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f2f8;
  color: #9aa0b4;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.register-step.active .step-dot {
  background: #1a6fdb;
  color: #fff;
}

.register-step.completed .step-dot {
  background: #22c55e;
  color: #fff;
}

.register-step span {
  font-size: 10px;
  font-weight: 600;
  color: #9aa0b4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.register-step.active span { color: #1a6fdb; }
.register-step.completed span { color: #22c55e; }

.step-line {
  flex: 1;
  height: 1px;
  background: #e8eaf0;
  margin: 0 8px;
  margin-bottom: 16px;
}

/* ── STEP PANELS ─────────────────────────────────────────── */
.register-step-panel { display: none; }
.register-step-panel.active { display: block; }

.register-step-panel h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.register-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── FORM ────────────────────────────────────────────────── */
.register-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #4a4e69;
}

.form-group input {
  padding: 10px 14px;
  border: 1.5px solid #e0e3ed;
  border-radius: 9px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-group input:focus {
  border-color: #1a6fdb;
  box-shadow: 0 0 0 3px rgba(26,111,219,0.08);
}

.password-wrap {
  position: relative;
}

.password-wrap input { width: 100%; padding-right: 40px; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa0b4;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.toggle-password:hover { color: #1a6fdb; }

.required { color: #e63946; }

/* ── ROLE CARDS ──────────────────────────────────────────── */
.role-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid #e0e3ed;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.role-card:hover { border-color: #1a6fdb; background: #fafcff; }

.role-card.selected {
  border-color: #1a6fdb;
  background: #eef4fd;
}

.role-card-icon { font-size: 24px; flex-shrink: 0; }

.role-card-content { flex: 1; }

.role-card-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}

.role-card-content p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.role-card-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef4fd;
  border: 1.5px solid #1a6fdb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-register-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #1a6fdb;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 16px;
}
.btn-register-next:hover { background: #1560c4; }

.btn-register-submit {
  flex: 1;
  padding: 12px;
  background: #1a6fdb;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-register-submit:hover { background: #1560c4; }
.btn-register-submit:disabled { background: #9aa0b4; cursor: not-allowed; }

.btn-register-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #fff;
  color: #4a4e69;
  border: 1.5px solid #e0e3ed;
  border-radius: 9px;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-register-back:hover { border-color: #1a6fdb; color: #1a6fdb; }

.register-nav-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── TERMS ───────────────────────────────────────────────── */
.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.register-terms input { margin-top: 2px; accent-color: #1a6fdb; flex-shrink: 0; }
.register-terms a { color: #1a6fdb; text-decoration: none; font-weight: 500; }

/* ── ERROR ───────────────────────────────────────────────── */
.register-error {
  background: #fff0f1;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #e63946;
  margin-bottom: 16px;
}

/* ── LOGIN LINK ──────────────────────────────────────────── */
.register-login-link {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.register-login-link a { color: #1a6fdb; font-weight: 600; text-decoration: none; }

/* ── SUCCESS ─────────────────────────────────────────────── */
.register-success {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon-wrap { font-size: 56px; }

.register-success h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
}

.register-success p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 320px;
}

/* ── TOOLTIP ─────────────────────────────────────────────── */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: pointer;
}

.tooltip-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #e0e3ed;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #e0e2f0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: left;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  pointer-events: none;
}

.tooltip-wrap:hover .tooltip-text { display: block; }

/* ── UTILITIES ───────────────────────────────────────────── */
.hidden { display: none !important; }