.authentication-wrapper.authentication-basic .authentication-inner {
  max-width: 620px;
}

.authentication-wrapper.authentication-basic .authentication-inner .card {
  padding: 0;
  border-radius: 8px;
}

.card-body {
  padding: 1rem !important;
}

.app-brand {
  display: flex;
}

.register-panel {
  color: #1f2937;
  font-family: "Public Sans", sans-serif;
}

.register-title {
  margin: 0;
  color: #17174f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.register-subtitle {
  margin: 2px 0 16px;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 600;
}

.register-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
}

.register-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e2e8f0;
}

.register-step {
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

button.register-step {
  cursor: pointer;
}

.register-step-number {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.register-step.is-active {
  color: #635bff;
}

.register-step.is-active .register-step-number {
  border-color: #635bff;
  background: #635bff;
  color: #fff;
}

.register-tab-panel[hidden] {
  display: none;
}

.kyc-alert {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 2px solid #facc15;
  border-radius: 7px;
  background: #fff9c4;
  color: #7c2d12;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

.kyc-alert strong {
  font-weight: 800;
}

.kyc-verified-text {
  color: #22c55e;
}

.kyc-unverified-text {
  color: #f59e0b;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.register-field label,
.user-type-label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.required {
  color: #ef4444;
  margin-left: 4px;
}

.register-field .form-control {
  min-height: 45px;
  border: 2px solid #dfe7ef;
  border-radius: 8px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 500;
  box-shadow: none;
}

.register-field .form-control:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.mobile-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.user-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.user-type-card {
  position: relative;
  display: block;
  min-height: 150px;
  padding: 14px 16px;
  border: 2px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.user-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-type-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

.user-type-icon {
  font-size: 23px;
  line-height: 1;
}

.user-type-title {
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.user-type-text {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.28;
}

.user-type-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #635bff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.user-type-card:has(input:checked) {
  border-color: #635bff;
  background: #eef2ff;
  box-shadow: 0 0 0 1px rgba(99, 91, 255, .1);
}

.user-type-card:has(input:checked) .user-type-check {
  display: inline-flex;
}

.register-actions {
  margin-top: 6px;
}

.login-field {
  margin-bottom: 18px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 18px;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #374151;
  cursor: pointer;
}

.forgot-password-spinner {
  display: none;
}

.login-options a,
.register-login-link a {
  color: #4f46e5;
  font-weight: 800;
  text-decoration: none;
}

.login-options a:hover,
.register-login-link a:hover {
  text-decoration: underline;
}

.register-actions .btn {
  min-height: 46px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.register-login-link {
  margin: 16px 0 0;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}

.kyc-review-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.kyc-review-copy {
  max-width: 430px;
  margin: 0 0 16px;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.kyc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kyc-info-card {
  min-height: 150px;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.kyc-info-card.warning {
  border: 1px solid #facc15;
  background: #fffbeb;
  color: #7c2d12;
}

.kyc-info-card.success {
  border: 1px solid #4ade80;
  background: #ecfdf5;
  color: #166534;
}

.kyc-info-icon {
  display: block;
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1;
}

.kyc-info-title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.kyc-upload-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}

.kyc-upload-title::before,
.kyc-upload-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.kyc-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kyc-upload-card {
  display: flex;
  min-height: 166px;
  padding: 16px 14px;
  align-items: center;
  justify-content: center;
  border: 2px dashed #dfe7ef;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.kyc-upload-card:hover {
  border-color: #635bff;
  background: #f8fafc;
}

.kyc-upload-card.has-file {
  border-color: #16a34a;
  background: #f0fdf4;
}

.kyc-upload-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kyc-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.kyc-upload-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1;
}

.kyc-upload-icon.blue {
  background: #eef2ff;
  color: #635bff;
}

.kyc-upload-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.kyc-upload-icon.orange {
  background: #ffedd5;
  color: #f97316;
}

.kyc-upload-icon.purple {
  background: #f3e8ff;
  color: #8b5cf6;
}

.kyc-upload-name {
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.kyc-upload-help {
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.kyc-upload-action {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.kyc-upload-meta {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.kyc-upload-progress {
  display: none;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.kyc-upload-progress.is-visible {
  display: block;
}

.kyc-upload-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.kyc-upload-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
}

.kyc-upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
  transition: width .2s ease;
}

.kyc-upload-file-list {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  overflow-wrap: anywhere;
}

.kyc-upload-progress-note {
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.kyc-review-actions {
  display: grid;
  gap: 9px;
}

.kyc-review-submit,
.kyc-review-skip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.registration-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: registration-loader-spin .75s linear infinite;
}

.is-loading .registration-loader {
  display: inline-block;
}

@keyframes registration-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.kyc-review-submit {
  border: 0;
  background: #4f46e5;
  color: #fff;
}

.kyc-review-skip {
  border: 1px solid #dfe7ef;
  background: #f8fafc;
  color: #334155;
}

@media (max-width: 575.98px) {
  .register-title {
    font-size: 22px;
  }

  .register-subtitle,
  .kyc-alert,
  .register-field label,
  .user-type-label,
  .register-field .form-control {
    font-size: 16px;
  }

  .register-step {
    font-size: 14px;
  }

  .register-grid,
  .user-type-grid,
  .kyc-info-grid,
  .kyc-upload-grid {
    grid-template-columns: 1fr;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* Cargo Charterer commodity and route selection */
.trade-preferences { margin-top: 24px; animation: register-section-in .2s ease; }
.trade-preferences[hidden] { display: none !important; }
.cargo-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cargo-choice { position: relative; display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 9px 11px; border: 1.5px solid #dbe2ea; border-radius: 8px; background: #fff; color: #445064; cursor: pointer; font-size: 13px; font-weight: 700; transition: .16s ease; }
.cargo-choice:hover { border-color: #4f46e5; background: #f4f5ff; }
.cargo-choice.is-checked { border-color: #4f46e5; background: #eef0ff; color: #3730a3; }
.cargo-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cargo-choice-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.cargo-choice-tick, .vessel-choice-tick { display: inline-flex; width: 15px; height: 15px; flex: 0 0 15px; align-items: center; justify-content: center; border: 1.5px solid #cbd5e1; border-radius: 4px; color: transparent; font-size: 9px; }
.cargo-choice.is-checked .cargo-choice-tick, .vessel-choice.is-selected .vessel-choice-tick { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.trade-empty { margin: 0; padding: 12px; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: 13px; }
.standard-routes-panel { margin-top: 14px; overflow: hidden; border: 1px solid #cdd5ff; border-radius: 9px; background: #f7f8ff; }
.standard-routes-heading, .custom-routes-heading { padding: 8px 12px; background: #e7e9ff; color: #3f46a8; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.standard-route-block { padding: 10px 12px; border-top: 1px solid #e1e4ff; }
.standard-route-title { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #1e293b; font-size: 13px; font-weight: 800; }
.route-access-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.4; }
.route-access-badge.is-free { background: #dcfce7; color: #166534; }
.route-access-badge.is-chargeable { background: #ffedd5; color: #9a3412; }
.standard-route-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.standard-route-pill { padding: 5px 9px; border: 1px solid #c7cffd; border-radius: 5px; background: #fff; color: #4b55b8; font-size: 11px; font-weight: 700; }
.standard-route-empty { color: #7c879a; font-size: 12px; }
.custom-route-trigger { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border: 1.5px dashed #f0a23a; border-radius: 8px; background: #fff9ef; color: #9a5b00; cursor: pointer; font-size: 12px; font-weight: 700; }
.custom-route-trigger:hover { background: #fff3df; }
.custom-routes-panel { margin-top: 12px; overflow: hidden; border: 1px solid #bfe8d4; border-radius: 9px; }
.custom-routes-heading { background: #e9f8f0; color: #16734b; }
.custom-route-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid #e2f2ea; color: #355448; font-size: 12px; }
.custom-route-item button { border: 0; background: transparent; color: #dc2626; font-size: 20px; line-height: 1; }
.custom-route-modal[hidden] { display: none; }
.custom-route-modal { position: fixed; z-index: 1055; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(15, 23, 42, .58); }
.custom-route-modal-open { overflow: hidden; }
.custom-route-dialog { width: min(620px, 100%); max-height: calc(100vh - 36px); overflow: auto; border-radius: 13px; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, .3); }
.custom-route-modal-head { position: relative; padding: 20px 22px 15px; border-bottom: 1px solid #e5e7eb; }
.custom-route-modal-head h3 { margin: 0 36px 5px 0; color: #172033; font-size: 19px; font-weight: 800; }
.custom-route-modal-head p { margin: 0; color: #6b7280; font-size: 12px; line-height: 1.5; }
.custom-route-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #64748b; font-size: 28px; }
.custom-route-modal-body { padding: 18px 22px; }
.custom-route-notice { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #f3d49a; border-radius: 8px; background: #fffaec; color: #83540b; font-size: 12px; line-height: 1.45; }
.custom-route-label { display: block; margin-bottom: 6px; color: #334155; font-size: 12px; font-weight: 800; }
.custom-route-builder { display: flex; align-items: center; gap: 10px; }
.custom-route-builder > span { color: #64748b; font-weight: 800; }
.custom-route-or { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: #94a3b8; font-size: 11px; text-transform: uppercase; }
.custom-route-or::before, .custom-route-or::after { height: 1px; flex: 1; background: #e2e8f0; content: ''; }
.vessel-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vessel-choice { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1.5px solid #dbe2ea; border-radius: 7px; cursor: pointer; color: #475569; font-size: 12px; font-weight: 800; }
.vessel-choice.is-selected { border-color: #4f46e5; background: #f0f2ff; color: #3730a3; }
.vessel-choice input { position: absolute; opacity: 0; }
.vessel-choice small { display: block; color: #94a3b8; font-size: 10px; font-weight: 600; }
.custom-route-modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 22px; border-top: 1px solid #e5e7eb; background: #f8fafc; }
.custom-route-success-dialog { width: min(470px, 100%); }
.custom-route-success-dialog .custom-route-modal-body { padding: 30px 28px; }
.custom-route-success-dialog h3 { margin: 0 0 10px; color: #172033; font-size: 21px; font-weight: 800; }
.custom-route-success-dialog p { margin: 0 0 22px; color: #64748b; font-size: 14px; line-height: 1.65; }
.custom-route-success-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 25px; font-weight: 800; }

.route-request-popup { position: fixed; z-index: 1060; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .62); }
.route-request-popup[hidden] { display: none; }
.route-request-popup-open { overflow: hidden; }
.route-request-popup-dialog { position: relative; width: min(440px, 100%); padding: 34px 30px 28px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .28); text-align: center; }
.route-request-popup-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #64748b; font-size: 28px; line-height: 1; cursor: pointer; }
.route-request-popup-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #e8f7ef; color: #15803d; font-size: 28px; font-weight: 800; }
.route-request-popup-dialog h2 { margin: 0 0 12px; color: #172033; font-size: 24px; font-weight: 800; }
.route-request-popup-dialog p { margin: 0; color: #5f6b7c; font-size: 15px; line-height: 1.65; }
.route-request-popup-button { min-width: 112px; margin-top: 24px; }
@keyframes register-section-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

@media (max-width: 767.98px) {
  .cargo-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-route-builder { align-items: stretch; flex-direction: column; }
  .custom-route-builder > span { text-align: center; transform: rotate(90deg); }
}

@media (max-width: 420px) {
  .cargo-choice-grid, .vessel-choice-grid { grid-template-columns: 1fr; }
}

/* Softer registration typography */
.register-panel {
  color: #334155;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.register-title {
  color: #25255f;
  font-weight: 700;
  letter-spacing: -.015em;
}

.register-subtitle {
  color: #8491a5;
  font-weight: 500;
}

.register-step,
.section-title {
  font-weight: 700;
}

.register-field label,
.user-type-label,
.user-type-title,
.cargo-choice,
.standard-route-title,
.custom-route-label {
  font-weight: 600;
}

.register-field .form-control {
  font-weight: 400;
}

.user-type-text,
.kyc-review-copy,
.kyc-upload-help,
.register-login-link,
.standard-route-pill {
  font-weight: 400;
}

.kyc-alert {
  color: #7a4c22;
  font-weight: 400;
}

.register-actions .btn,
.login-options a,
.register-login-link a {
  font-weight: 600;
}

.register-title {
  font-size: 22px;
}

.register-subtitle {
  font-size: 15px;
}

.register-step {
  font-size: 14px;
}

.section-title {
  font-size: 14px;
}

.register-field label,
.user-type-label,
.register-field .form-control,
.kyc-alert {
  font-size: 15px;
}

.user-type-title {
  font-size: 16px;
}

.user-type-text,
.kyc-review-copy,
.kyc-info-card,
.kyc-upload-name,
.kyc-upload-help {
  font-size: 14px;
}

.cargo-choice {
  font-size: 12px;
}

.register-actions .btn,
.register-login-link {
  font-size: 14px;
}
