/* ===== REGISTER PAGE HERO ===== */
.reg-hero {
  background: var(--dark);
  color: #fff;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.reg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(42,61,143,0.85) 0%, rgba(17,17,17,0.95) 60%),
    radial-gradient(ellipse at 90% 50%, #0d1a4a 0%, transparent 55%);
}
.reg-hero .wrap { position: relative; z-index: 1; }
.reg-hero .breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
}
.reg-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.reg-hero .breadcrumb a:hover { color: #fff; }
.reg-hero .breadcrumb span { color: rgba(255,255,255,0.35); margin: 0 0.5rem; }
.reg-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.9rem;
}
.reg-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin: 0;
  line-height: 1.7;
}

/* ===== LAYOUT ===== */
.reg-section {
  padding: 4rem 0 5rem;
  background: var(--light);
}
.reg-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ===== ASIDE ===== */
.reg-info-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.ri-icon {
  width: 48px;
  height: 48px;
  background: rgba(42,61,143,.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 1rem;
}
.reg-info-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.reg-info-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.ri-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ri-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  font-weight: 600;
  line-height: 1.45;
}
.ri-checklist li svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.reg-steps-mini {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.reg-steps-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 0 0 1.25rem;
}
.reg-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.reg-steps-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.rsm-num {
  width: 26px;
  height: 26px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.reg-steps-list strong { font-size: 0.9rem; display: block; margin-bottom: 0.15rem; }
.reg-steps-list p { font-size: 0.82rem; color: var(--muted); margin: 0; line-height: 1.5; }

.reg-help {
  text-align: center;
  padding: 1.5rem;
  background: var(--dark);
  border-radius: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.reg-help p { margin: 0 0 0.3rem; }
.reg-help a { color: rgba(255,255,255,0.6); }
.reg-help a:hover { color: #fff; }
.reg-help-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 0.5rem;
}

/* ===== FORM CARD ===== */
.reg-form-wrap {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2.5rem;
}

/* Account type selector */
.reg-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.reg-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.reg-type-btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.reg-type-btn.active {
  border-color: var(--red);
  background: rgba(42,61,143,.06);
  color: var(--red);
}

/* Section blocks */
.reg-section-block {
  border-top: 1px solid #eee;
  padding-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.reg-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.rsb-num {
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Shared form field styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}
.req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.72rem 0.9rem;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(42,61,143,.1);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #e53935;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Password field with show/hide toggle */
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 2.8rem;
}
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  display: grid;
  place-items: center;
}
.pw-toggle:hover { color: var(--charcoal); }

/* Password strength meter */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.5rem 0 1rem;
}
.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 0.3s, background 0.3s;
}
.pw-strength-label {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}

/* Terms & submit */
.reg-footer {
  border-top: 1px solid #eee;
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.reg-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--red);
  margin-top: 2px;
  cursor: pointer;
}
.reg-terms span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.reg-terms a { color: var(--red); font-weight: 600; }
.reg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
}
.reg-login-link {
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.reg-login-link a { color: var(--red); font-weight: 700; }

/* ===== ERROR BANNER ===== */
.reg-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ===== SUBMIT LOADING STATE ===== */
.reg-submit-spinner { display: none; animation: spin 0.8s linear infinite; }
.reg-submit.loading .reg-submit-arrow  { display: none; }
.reg-submit.loading .reg-submit-spinner { display: block; }
.reg-submit.loading .reg-submit-label  { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SUCCESS SCREEN ===== */
.reg-success {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.reg-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(67,160,71,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #43a047;
  margin: 0 auto 1.5rem;
}
.reg-success h2 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}
.reg-success p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 0.95rem;
}
.reg-success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-dark {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--dark);
  border-radius: 6px;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover { background: var(--dark); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .reg-inner { grid-template-columns: 280px 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .reg-inner { grid-template-columns: 1fr; }
  .reg-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .reg-help { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .reg-aside { grid-template-columns: 1fr; }
  .reg-form-wrap { padding: 1.75rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .reg-type-row { grid-template-columns: 1fr; }
}
