/* World-Class Executive Register Styles */

.reg-layout {
  min-height: 100vh;
  padding-top: 80px;
  box-sizing: border-box;
  background: #f8fafc;
  display: flex;
  justify-content: center;
}

/* Form Panel: full screen, content centered */
.reg-form-panel {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 4.5rem;
  background: #ffffff;
  position: relative;
  overflow: visible;
}

.auth-form-content {
  max-width: 480px;
  width: 100%;
  transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form-content.step3-active {
  max-width: 1120px;
}

/* On the profile step, the shared wizard takes over the header */
.auth-form-content.step3-active .auth-brand-badge,
.auth-form-content.step3-active .auth-heading,
.auth-form-content.step3-active .auth-subheading {
  display: none;
}

.auth-form-content.step3-active .auth-steps {
  max-width: 480px;
}

/* Step 3 Hero: single role summary header */
.reg-step3-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.08);
}

.reg-step3-hero-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.reg-step3-hero-body {
  flex: 1;
  min-width: 0;
}

.reg-step3-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.reg-step3-hero-title {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.reg-step3-hero-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.55;
}

.reg-step3-hero-back {
  flex-shrink: 0;
}

/* Wizard-owned navigation replaces the page footer for player, agent & coach */
#regStep3[data-role="player"] .reg-step3-footer-row,
#regStep3[data-role="agent"] .reg-step3-footer-row,
#regStep3[data-role="coach"] .reg-step3-footer-row {
  display: none !important;
}

/* All roles: hero back button handles going back to step 2 */
#regStep3[data-role="coach"] .reg-step3-hero-back {
  display: flex;
}

/* Wizard nav buttons — btn-secondary (Previous) */
#regStep3 .btn-secondary,
#profileFormContainer .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
#regStep3 .btn-secondary:hover,
#profileFormContainer .btn-secondary:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

/* Wizard nav buttons — btn-primary (Next / Create Account Now) */
#regStep3 .btn-primary,
#profileFormContainer .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
#regStep3 .btn-primary:hover,
#profileFormContainer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}
#regStep3 .btn-primary:disabled,
#profileFormContainer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 560px) {
  .reg-step3-hero {
    flex-wrap: wrap;
  }
  .reg-step3-hero-back {
    display: none;
  }
}


.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
  border-radius: 25px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

.auth-brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-heading {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.auth-subheading {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Progress Steps Indicator */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
}

.auth-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-step.active {
  color: #059669;
}

.auth-step.active .auth-step-num {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.auth-step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.6rem;
}

/* Role Selection Cards */
.auth-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.auth-role-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-role-card:hover {
  border-color: #bbf7d0;
  transform: translateY(-2px);
}

.auth-role-card.selected {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
}

.auth-role-card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #64748b;
  transition: all 0.25s;
}

.auth-role-card.selected .auth-role-card-icon {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.auth-role-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.auth-role-card-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* Form Controls */
.auth-field-wrap {
  margin-bottom: 1.1rem;
}

.auth-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: #334155;
  margin-bottom: 0.4rem;
}

.auth-field-input {
  position: relative;
}

.auth-field-input i.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.auth-field-input input,
.auth-field-input select {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 500;
  transition: all 0.2s;
  box-sizing: border-box;
}

.auth-field-input input:focus,
.auth-field-input select:focus {
  outline: none;
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
}

.auth-password-toggle:hover {
  color: #059669;
}

/* Password Strength Meter */
.auth-strength-wrap {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.auth-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.auth-strength-bar {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: #e2e8f0;
  transition: background 0.25s;
}

.auth-strength-bar.weak {
  background: #ef4444;
}

.auth-strength-bar.medium {
  background: #f59e0b;
}

.auth-strength-bar.strong {
  background: #059669;
}

.auth-strength-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 72px;
  text-align: right;
  transition: color 0.25s;
}

.auth-strength-label.weak {
  color: #ef4444;
}

.auth-strength-label.medium {
  color: #f59e0b;
}

.auth-strength-label.strong {
  color: #059669;
}

.btn-auth-submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.35);
}

.btn-auth-back {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 750;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-auth-back:hover {
  background: #e2e8f0;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-footer-link a {
  color: #059669;
  font-weight: 750;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* Multi-step */
.reg-step { transition: opacity 0.3s ease; }
.reg-step.hidden { display: none; }

/* Step 3: the shared profile wizard fills the screen */
#regStep3 #profileFormContainer {
  width: 100%;
  position: relative;
}

#regStep3 #profileFormContainer .player-wizard-form,
#regStep3 #profileFormContainer .coach-profile-form {
  max-width: none;
}

/* Wizard bottom nav — highly visible in-flow flex */
#regStep3 .player-wizard-actions {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem !important;
  border-top: 2px solid #0f172a !important;
  width: 100%;
  gap: 1rem;
  background: #fff !important;
  position: relative;
  z-index: 5;
  min-height: 56px;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Image picker fields (photo uploads) — theme to match the register page */
#regStep3 .ipf-field-actions {
  gap: 0.6rem;
}

#regStep3 .ipf-btn {
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 750;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s;
}

#regStep3 .ipf-btn i {
  font-size: 0.95rem;
}

#regStep3 .ipf-btn:hover {
  border-color: #059669;
  color: #059669;
  background: #f0fdf4;
}

#regStep3 .ipf-btn-upload {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

#regStep3 .ipf-btn-upload:hover {
  opacity: 0.92;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #047857);
}

#regStep3 .ipf-preview-empty {
  height: 110px;
  border-radius: 14px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
}

#regStep3 .ipf-preview-single {
  max-width: 180px;
  border-radius: 14px;
  border-color: #cbd5e1;
}

#regStep3 .ipf-preview-item {
  border-radius: 12px;
  border-color: #cbd5e1;
}

#regStep3 .ipf-file-thumb {
  color: #059669;
}

#regStep3 .ipf-remove-btn {
  border-radius: 50%;
}

.admin-check-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}
.admin-facility-check{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
  color:#334155;
  font-size:13px;font-weight:700;
  cursor:pointer;
  transition:all .18s;
  user-select:none;
  line-height:1.35;
}
.admin-facility-check:hover{border-color:#059669;background:#f0fdf4;color:#065f46;transform:translateY(-1px);box-shadow:0 4px 12px rgba(5,150,105,.08);}
.admin-facility-check:has(input:checked){
  border-color:#059669;
  background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%);
  color:#065f46;
  box-shadow:0 4px 14px rgba(5,150,105,.15);
}
.admin-facility-check input[type="checkbox"]{
  width:18px;height:18px;accent-color:#059669;flex-shrink:0;cursor:pointer;
}
.admin-facility-check span{flex:1;min-width:0;}

/* RTL */

@media (max-width: 768px) {
  .reg-layout { padding-top: 70px; }
  .reg-form-panel { padding: 1.5rem 1rem 2.5rem; }
  .reg-form-panel::before,
  .reg-form-panel::after { display: none; }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .role-group {
    flex-direction: column;
  }
}
