/* Merchant application: shared site chrome, independently scrolling form. */
body.portal-auth:has(.registration-shell) { height: 100dvh; overflow: hidden; }
body.portal-auth:has(.registration-shell) > main { height: 100%; min-height: 0; }
.registration-shell {
  --registration-purple: #512397; --registration-blue: #147df2; --registration-ink: #211435;
  --registration-muted: #7a7188; --registration-line: #e7e1ef;
  height: 100%; min-height: 0; overflow: hidden; color: var(--registration-ink);
  background: radial-gradient(ellipse at 100% 0, #eae1ff 0, transparent 48%), linear-gradient(140deg, #fbf9ff, #f3f6ff);
}
.registration-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; width: min(1392px, 100%); height: 100%; min-height: 0; margin: 0 auto; padding: 24px 32px; }
.registration-main > *, .registration-shell .signup-grid > * { min-width: 0; }
.registration-form-frame { position: relative; min-height: 0; height: 100%; border-radius: 22px; isolation: isolate; }
.registration-loader { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: inherit; background: rgb(255 255 255 / 82%); backdrop-filter: blur(3px); cursor: wait; outline: none; }
.registration-loader-content { display: grid; justify-items: center; gap: 15px; max-width: 340px; padding: 26px; text-align: center; line-height: 1.6; color: var(--registration-purple); font-size: 14px; font-weight: 600; }
.registration-loader-spinner { width: 48px; height: 48px; border: 4px solid #e6ddf6; border-top-color: var(--registration-purple); border-right-color: var(--registration-blue); border-radius: 50%; animation: registration-loader-spin .8s linear infinite; }
@keyframes registration-loader-spin { to { transform: rotate(360deg); } }
.registration-sidebar { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 0; padding: 30px 22px; border: 1px solid #5a36a7; border-radius: 22px; color: #fff; background: radial-gradient(ellipse at 100% 100%, #154c9a 0, transparent 53%), linear-gradient(150deg, #412075, #27104d 70%); }
.registration-sidebar::after { content: ""; position: absolute; z-index: -1; bottom: -150px; right: -170px; width: 340px; height: 340px; border: 1px solid #bfa5ff24; border-radius: 50%; box-shadow: 0 0 0 45px #bfa5ff08, 0 0 0 46px #bfa5ff18, 0 0 0 90px #bfa5ff04, 0 0 0 91px #bfa5ff0d; }
.registration-eyebrow { color: #787086; font-size: 10px; font-weight: 750; line-height: 1.4; letter-spacing: .14em; }
.registration-sidebar-top .registration-eyebrow { color: #b8a3db; }
.registration-sidebar-top > p { margin: 12px 0 28px; color: #fff; font-size: 26px; font-weight: 650; line-height: 1.25; letter-spacing: -.045em; }
.registration-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.registration-steps > li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 16px 12px; border: 1px solid #d6c5f719; border-radius: 13px; background: #ffffff04; }
.registration-steps > li.active { border-color: #bca4ff69; background: linear-gradient(110deg, #bba1ff20, #727dff10); box-shadow: 0 8px 22px #14062610; }
.registration-step-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #b39bd34d; border-radius: 10px; color: #bfaed7; font-size: 11px; font-weight: 700; }
.registration-steps > li.active .registration-step-number { border-color: #a390fb; color: #fff; background: linear-gradient(135deg, #7852d7, #4473e8); }
.registration-steps strong { display: block; color: #d7cbe7; font-size: 13px; line-height: 1.4; font-weight: 650; }
.registration-steps small { display: block; margin-top: 5px; color: #ab98c4; font-size: 10px; line-height: 1.5; }
.registration-steps > li.active strong { color: #fff; }
.registration-steps > li.active small { color: #c0b1d5; }
.registration-step-check { display: none; margin-left: auto; color: #a5e3ce; font-size: 14px; }
.registration-steps > li.complete .registration-step-check { display: block; }
.registration-sidebar-note { display: flex; align-items: flex-start; gap: 11px; margin-top: auto; padding: 26px 3px 0; }
.registration-sidebar-note > svg { flex: 0 0 21px; width: 21px; height: 23px; stroke: #a9c5ff; stroke-width: 1.4; }
.registration-sidebar-note strong { display: block; color: #e1d9ee; font-size: 11px; font-weight: 600; }
.registration-sidebar-note p { margin: 7px 0 0; color: #a99abf; font-size: 10px; line-height: 1.7; }
.registration-shell .signup-card { align-self: stretch; width: 100%; height: 100%; min-height: 0; max-height: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 27px 34px; border: 1px solid #e4dbee; border-radius: 22px; background: #fff; box-shadow: 0 10px 36px #3c1f6d06; scrollbar-width: thin; scrollbar-color: #cbbddd transparent; }
.registration-shell .registration-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.registration-shell .signup-step[hidden], .registration-shell [hidden] { display: none !important; }
.registration-shell .required-mark { color: #7d4cab; }
.registration-shell .signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px 20px; }
.registration-shell .signup-grid > .wide { grid-column: 1 / -1; }
.registration-shell .signup-field { display: grid; gap: 7px; margin: 0; }
.registration-shell .signup-field > label, .registration-shell .payment-methods > legend { display: block; color: #42354f; font-size: 12px; font-weight: 650; line-height: 1.5; }
.registration-shell .signup-field > label > span { display: inline; }
.registration-shell .optional-label { color: #968d9e; font-size: 10px; font-weight: 400; margin-left: 4px; }
.registration-shell .signup-field > input, .registration-shell .signup-field > select, .registration-shell .signup-field > textarea { display: block; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: 11px 13px; border: 1px solid #ddd5e7; border-radius: 9px; background: #fefcfff0; color: #30203e; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.5; outline: none; transition: border-color .15s, box-shadow .15s; }
.registration-shell .signup-field > select { padding-right: 30px; cursor: pointer; }
.registration-shell .signup-field > textarea { min-height: 88px; resize: vertical; }
.registration-shell .signup-field input::placeholder, .registration-shell .signup-field textarea::placeholder { color: #aaa0b3; opacity: 1; }
.registration-shell .signup-field input:focus, .registration-shell .signup-field select:focus, .registration-shell .signup-field textarea:focus { border-color: #8c63c6; box-shadow: 0 0 0 3px #895fc513; background: #fff; }
.registration-shell .signup-field [aria-invalid="true"] { border-color: #d36974; }
.registration-shell .signup-field > .field-hint { margin: 0; color: #8b8195; font-size: 10px; line-height: 1.5; }
.registration-shell .password-guidance { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 12px 0 18px; }
.registration-shell .password-guidance > span { color: #91869d; font-size: 9px; line-height: 1.6; }
.registration-shell .password-guidance > span::before { content: "○"; margin-right: 5px; color: #a79ab5; }
.registration-shell .password-guidance > span.valid { color: #357661; }
.registration-shell .password-guidance > span.valid::before { content: "✓"; color: #378566; }
.registration-shell .step-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--registration-line); }
.registration-shell .next-step, .registration-shell .submit-application { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 46px; max-width: 100%; padding: 12px 20px; border: 0; border-radius: 9px; background: linear-gradient(110deg, #542095, #6035b8 55%, #3477da); box-shadow: 0 5px 15px #6935ae17; color: #fff; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.5; cursor: pointer; }
.registration-shell .next-step:hover, .registration-shell .submit-application:hover { filter: brightness(1.09); }
.registration-shell .back-step { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 3px; border: 0; background: transparent; color: #7b6c88; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.registration-shell .signin-prompt { color: #92849c; font-size: 10px; line-height: 1.5; text-decoration: none; }
.registration-shell .signin-prompt strong { color: #7443a7; font-weight: 650; }
.registration-shell .registration-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.registration-shell .registration-section > legend { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 0; color: #3b2454; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.registration-shell .section-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; background: #f0e8fa; color: #7850a1; font-size: 10px; letter-spacing: 0; }
.registration-shell .section-description { margin: 9px 0 18px; color: #8c8098; font-size: 11px; line-height: 1.5; }
.registration-shell .registration-section + .registration-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--registration-line); }
.registration-shell .payment-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.registration-shell .payment-methods > legend { padding: 0; }
.registration-shell .payment-method-options { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.registration-shell .payment-method-options > label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 12px; border: 1px solid #e3dce9; border-radius: 8px; background: #fdfbff; color: #756181; font-size: 11px; font-weight: 500; cursor: pointer; }
.registration-shell .payment-method-options > label:has(input:checked) { border-color: #b393d3; background: #f4edfc; color: #5b2b8b; }
.registration-shell .payment-method-options input, .registration-shell .terms-check input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: #6b3da0; }
.registration-shell .terms-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 15px; border: 1px solid #e8dff0; border-radius: 9px; background: #fcfaff; color: #7f708c; font-size: 10px; font-weight: 400; line-height: 1.8; }
.registration-shell .terms-check input { margin-top: 2px; }
.registration-shell .terms-check a { color: #7545a5; text-decoration: underline; text-underline-offset: 2px; }
.registration-shell .submission-note { margin: 12px 0 0; color: #92869d; font-size: 10px; line-height: 1.6; }
.registration-shell .field-error, .registration-shell .signup-field-error { color: #ac3346; font-size: 11px; line-height: 1.5; }
.registration-shell .signup-errors { margin: 0 0 20px; padding: 14px 16px; border: 1px solid #e9b6bf; border-radius: 10px; background: #fff5f6; color: #a3384a; font-size: 12px; line-height: 1.7; }
.registration-shell .signup-errors ul { margin: 6px 0 0; padding-left: 18px; }
.registration-shell .signup-errors a { color: inherit; }
.registration-shell button:focus-visible, .registration-shell a:focus-visible, .registration-shell input[type="checkbox"]:focus-visible { outline: 2px solid #9d69d6; outline-offset: 4px; }
@media (min-width: 1450px) { .registration-main { grid-template-columns: 325px minmax(0, 1fr); } .registration-shell .signup-card { padding: 30px 42px; } }
@media (max-height: 800px) and (min-width: 901px) {
  .registration-main { padding-top: 15px; padding-bottom: 15px; gap: 20px; }
  .registration-sidebar { padding: 23px 20px; }
  .registration-sidebar-top > p { margin-bottom: 23px; font-size: 24px; }
  .registration-steps > li { min-height: 76px; padding: 14px 11px; }
  .registration-shell .signup-card { padding-top: 21px; padding-bottom: 21px; }
  .registration-shell .signup-grid { gap: 14px 18px; }
  .registration-shell .password-guidance { margin-bottom: 14px; }
  .registration-shell .step-actions { margin-top: 18px; padding-top: 14px; }
}
@media (max-width: 1100px) {
  .registration-main { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; padding-right: 22px; padding-left: 22px; }
  .registration-sidebar { padding: 24px 16px; }
  .registration-sidebar-top > p { font-size: 24px; }
  .registration-steps > li { gap: 10px; padding-left: 10px; padding-right: 10px; }
  .registration-steps small { font-size: 9px; }
  .registration-shell .signup-card { padding-right: 25px; padding-left: 25px; }
}
@media (max-width: 900px) {
  .registration-form-frame { border-radius: 16px; }
  .registration-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 14px 20px; }
  .registration-sidebar { padding: 11px; border-radius: 14px; }
  .registration-sidebar-top, .registration-sidebar-note { display: none; }
  .registration-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .registration-steps > li { min-height: 56px; padding: 9px 12px; border-radius: 9px; }
  .registration-step-number { width: 29px; height: 29px; flex-basis: 29px; border-radius: 8px; font-size: 10px; }
  .registration-steps strong { font-size: 11px; }
  .registration-steps small, .registration-step-check { display: none !important; }
  .registration-shell .signup-card { padding: 24px 28px; border-radius: 16px; }
  .registration-shell .signup-field > input, .registration-shell .signup-field > select, .registration-shell .signup-field > textarea { font-size: 16px; }
}
@media (max-width: 600px) {
  .registration-form-frame { border-radius: 14px; }
  .registration-main { padding: 10px 12px; gap: 9px; }
  .registration-sidebar { padding: 8px; border-radius: 12px; }
  .registration-steps { gap: 6px; }
  .registration-steps > li { min-height: 54px; flex-direction: column; justify-content: center; gap: 5px; padding: 7px 2px; border-color: transparent; background: none; }
  .registration-step-number { width: 23px; height: 23px; flex-basis: 23px; border-radius: 7px; font-size: 9px; }
  .registration-steps strong { font-size: 9px; font-weight: 500; text-align: center; }
  .registration-shell .signup-card { padding: 20px 18px; border-radius: 14px; }
  .registration-shell .signup-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .registration-shell .signup-grid > .wide { grid-column: auto; }
  .registration-shell .signup-field > label, .registration-shell .payment-methods > legend { font-size: 12px; }
  .registration-shell .signup-field > .field-hint { font-size: 11px; }
  .registration-shell .password-guidance { gap: 7px 12px; }
  .registration-shell .password-guidance > span { font-size: 10px; }
  .registration-shell .terms-check { font-size: 11px; }
  .registration-shell .signin-prompt { max-width: 125px; font-size: 10px; }
  .registration-shell .next-step, .registration-shell .submit-application { gap: 14px; padding-right: 15px; padding-left: 15px; }
  .registration-shell .registration-section > legend { font-size: 15px; }
}
@media (max-width: 360px) { .registration-shell .signup-card { padding-right: 14px; padding-left: 14px; } .registration-shell .step-actions { gap: 10px; } .registration-shell .signin-prompt { max-width: 100px; } }
@media (max-height: 580px) and (min-width: 901px) { .registration-sidebar { overflow-y: auto; } .registration-sidebar-top > p { display: none; } .registration-steps { margin-top: 16px; } .registration-sidebar-note { margin-top: 0; padding-top: 18px; } }
@media (max-height: 600px) and (max-width: 900px) {
  .registration-main { grid-template-rows: minmax(0, 1fr); }
  .registration-sidebar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .registration-shell * { scroll-behavior: auto !important; transition: none !important; } .registration-loader-spinner { animation: none; } }
