/* DIR Authentication / Registration — focused commerce-style layout */
body.auth-clean-page{
  margin:0!important;
  background:#06110f!important;
  color:#fff!important;
}
body.auth-clean-page .site-header,
body.auth-clean-page .site-footer,
body.auth-clean-page .floating-help,
body.auth-clean-page .back-to-top,
body.auth-clean-page .chat-widget,
body.auth-clean-page .site-announcement{
  display:none!important;
}
body.auth-clean-page main,
body.auth-clean-page .page-wrap,
body.auth-clean-page .container{
  max-width:none;
}
.auth-ref-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 50% 12%,rgba(18,38,32,.32),transparent 34%),
    #06110f;
  color:#f5f7f6;
  display:grid;
  place-items:start center;
  padding:58px 20px 34px;
}
.auth-ref-shell{
  width:min(100%,610px);
  display:grid;
  justify-items:center;
  gap:0;
}
.auth-ref-shell-wide{width:min(100%,690px)}
.auth-ref-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  margin:0 auto 34px;
  text-decoration:none;
}
.auth-ref-logo img{
  display:block;
  width:92px;
  height:auto;
  max-height:70px;
  object-fit:contain;
  filter:none;
}
.auth-ref-heading{
  width:100%;
  text-align:center;
  margin-bottom:28px;
}
.auth-ref-heading h1{
  margin:0;
  color:#fff;
  font-size:clamp(30px,4vw,43px);
  line-height:1.13;
  font-weight:500;
  letter-spacing:-.035em;
}
.auth-ref-heading p{
  max-width:560px;
  margin:8px auto 0;
  color:#aab5b1;
  font-size:15px;
  line-height:1.55;
}
.auth-ref-card{
  width:min(100%,560px);
  padding:28px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:#fff;
  color:#151a18;
  box-shadow:0 18px 60px rgba(0,0,0,.24);
}
.auth-ref-card-wide{width:min(100%,650px)}
.auth-ref-card .auth-form{display:grid;gap:17px}
.auth-ref-card .auth-flow-step{display:grid;gap:17px}
.auth-ref-card .auth-flow-step[hidden]{display:none!important}
.auth-field{display:grid;gap:7px}
.auth-field label,.auth-label-row label{
  color:#303733;
  font-size:13px;
  font-weight:600;
}
.auth-field label small{color:#7b837f;font-size:11px;font-weight:500}
.auth-label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.auth-label-row a,.auth-ref-card a{
  color:#202522;
}
.auth-label-row a{
  font-size:12px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.auth-ref-input{
  position:relative;
  display:flex;
  align-items:center;
  min-height:58px;
  border:1px solid #b8c0bc;
  border-radius:12px;
  background:#fff;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.auth-ref-input:focus-within{
  border-color:#111715;
  box-shadow:0 0 0 1px #111715;
}
.auth-ref-input input,
.auth-ref-input select,
.auth-ref-input textarea{
  width:100%;
  min-width:0;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#171b19!important;
  font:inherit;
  font-size:15px!important;
  padding:15px 17px!important;
}
.auth-ref-input input,
.auth-ref-input select{min-height:56px}
.auth-ref-input textarea{resize:vertical;min-height:108px;line-height:1.55}
.auth-ref-input select{appearance:auto}
.auth-ref-password input{padding-inline-end:54px!important}
.auth-eye{
  position:absolute;
  inset-inline-end:8px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#565d59;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.auth-eye:hover{background:#f1f3f2}
.auth-ref-primary,
.auth-ref-card .btn.btn-primary{
  min-height:62px!important;
  border-radius:12px!important;
  border:1px solid #07110f!important;
  background:#07110f!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:15px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
.auth-ref-primary:hover,
.auth-ref-card .btn.btn-primary:hover{
  background:#15201c!important;
  border-color:#15201c!important;
  transform:none!important;
}
.auth-ref-secondary,
.auth-ref-card .btn.btn-line{
  min-height:52px;
  border-radius:12px!important;
  border:1px solid #c8cecb!important;
  background:#fff!important;
  color:#1b211e!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:600!important;
}
.auth-ref-divider{
  display:flex;
  align-items:center;
  gap:14px;
  margin:20px 0 14px;
  color:#68706c;
  font-size:13px;
}
.auth-ref-divider:before,.auth-ref-divider:after{
  content:"";
  flex:1;
  height:1px;
  background:#dce0de;
}
.auth-ref-account{
  margin:0;
  text-align:center;
  color:#59615d;
  font-size:13px;
}
.auth-ref-account a{color:#1b211e;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.auth-ref-country{
  margin-top:30px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 17px;
  border:1px solid rgba(255,255,255,.19);
  border-radius:11px;
  color:#e5e9e7;
  font-size:13px;
}
.auth-ref-legal{
  display:grid;
  justify-items:center;
  gap:14px;
  margin-top:82px;
  color:#98a39f;
  text-align:center;
  font-size:11px;
  line-height:1.5;
}
.auth-ref-legal a{color:#dbe1de;text-decoration:none}
.auth-ref-legal a:hover{text-decoration:underline}
.auth-ref-help{
  margin:14px 0;
  color:#68706c;
  text-align:center;
  font-size:12px;
  line-height:1.55;
}
.auth-ref-back,.auth-ref-text-btn{
  display:flex;
  justify-content:center;
  width:100%;
  margin-top:14px;
  border:0;
  background:transparent;
  color:#222824!important;
  font:600 12px/1.4 inherit;
  text-decoration:underline!important;
  text-underline-offset:2px;
  cursor:pointer;
}
.auth-ref-back-top{justify-content:flex-start;margin:0 0 18px}
.auth-ref-card .auth-state{
  margin:0 0 15px;
  padding:11px 13px;
  border:1px solid #ecd0d0;
  border-radius:10px;
  background:#fff5f5;
  color:#7a2929;
}
.auth-ref-card .auth-state-pending{
  border-color:#eadfbf;
  background:#fffaf0;
  color:#755b1e;
}
.auth-ref-card .auth-state b{display:block;font-size:12px}
.auth-ref-card .auth-state p{margin:2px 0 0;font-size:11px;line-height:1.5}
.auth-field-error{color:#b42318;font-size:11px}
.auth-field-error:empty{display:none}
.auth-field-meta{display:flex;justify-content:space-between;gap:8px}
.auth-caps{color:#7b5e16;font-size:10px}
.auth-remember{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:#4d5551;
  font-size:12px;
  line-height:1.45;
  cursor:pointer;
}
.auth-remember input{margin-top:3px}
.auth-account-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #d7dcda;
  border-radius:10px;
  background:#f6f7f6;
}
.auth-account-chip b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  direction:ltr;
  color:#2a302d;
  font-size:13px;
  font-weight:600;
}
.auth-account-chip button{
  border:0;
  background:transparent;
  color:#202522;
  font:600 12px/1.4 inherit;
  text-decoration:underline;
  cursor:pointer;
}
.auth-submit-loading{display:inline-flex;align-items:center;gap:8px}
.auth-submit-loading i{
  width:15px;height:15px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:authRefSpin .7s linear infinite
}
@keyframes authRefSpin{to{transform:rotate(360deg)}}
.auth-hp,.auth-data{display:none!important}

/* OTP */
.auth-otp{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.auth-otp-digit{
  width:100%;
  min-width:0;
  height:60px;
  border:1px solid #b8c0bc;
  border-radius:11px;
  background:#fff;
  color:#151a18;
  font:700 22px/1 inherit;
  text-align:center;
  outline:0;
}
.auth-otp-digit:focus{border-color:#111715;box-shadow:0 0 0 1px #111715}

/* Registration */
.auth-role-list{display:grid;gap:10px}
.auth-role-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:78px;
  padding:13px 14px;
  border:1px solid #d5dad7;
  border-radius:13px;
  background:#fff;
  color:#1b211e!important;
  text-decoration:none!important;
  transition:border-color .15s ease,background .15s ease;
}
.auth-role-option:hover{border-color:#838b87;background:#fafbfa}
.auth-role-icon{
  width:42px;height:42px;border-radius:10px;background:#f0f3f1;color:#2e3732;display:grid;place-items:center
}
.auth-role-option>span:nth-child(2){display:grid;gap:3px}
.auth-role-option b{font-size:14px}
.auth-role-option small{color:#707873;font-size:11px;line-height:1.45}
.auth-role-arrow{color:#7e8681}
.auth-register-form{display:grid;gap:18px}
.auth-register-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.auth-register-full{grid-column:1/-1}
.auth-terms{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px;
  align-items:start;
  color:#5e6662;
  font-size:11px;
  line-height:1.55;
  cursor:pointer;
}
.auth-terms input{margin-top:3px}
.auth-ref-subcard{
  padding:14px;
  border:1px solid #d9dddb;
  border-radius:12px;
  background:#f7f8f7;
}
.auth-ref-subcard h3{margin:0 0 3px;color:#262c29;font-size:13px}
.auth-ref-subcard p{margin:0 0 10px;color:#727a76;font-size:11px}
.auth-sponsor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.auth-ref-roleline{
  display:flex;
  align-items:center;
  gap:7px;
  width:max-content;
  margin:0 auto 20px;
  padding:7px 10px;
  border-radius:999px;
  background:#f1f3f2;
  color:#3c4540;
  font-size:11px;
  font-weight:700;
}
.sa-pw-bar{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:7px}
.sa-pw-seg{height:4px;border-radius:999px;background:#dfe3e1}
.sa-pw-label{margin-top:4px;color:#6c7470;font-size:10px}

/* Recovery strength */
.auth-strength{display:grid;gap:6px;margin-top:6px}
.auth-strength-track{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.auth-strength-track i{height:4px;border-radius:999px;background:#dfe3e1}
.auth-strength-copy{display:flex;justify-content:space-between;color:#68706c;font-size:10px}
.auth-password-rules{display:grid;gap:4px;padding:10px;border-radius:10px;background:#f6f7f6;color:#68706c;font-size:10px}
.auth-password-rules span.ok{color:#137a4b;font-weight:600}

@media(max-width:720px){
  .auth-ref-page{padding:34px 16px 26px}
  .auth-ref-logo{margin-bottom:26px}
  .auth-ref-logo img{width:84px}
  .auth-ref-heading{margin-bottom:22px}
  .auth-ref-heading h1{font-size:29px}
  .auth-ref-heading p{font-size:13px}
  .auth-ref-card,.auth-ref-card-wide{width:100%;padding:22px;border-radius:20px}
  .auth-register-grid{grid-template-columns:1fr}
  .auth-register-full{grid-column:auto}
  .auth-ref-legal{margin-top:50px}
}
@media(max-width:440px){
  .auth-ref-page{padding:26px 12px 22px}
  .auth-ref-card,.auth-ref-card-wide{padding:18px;border-radius:18px}
  .auth-ref-primary,.auth-ref-card .btn.btn-primary{min-height:56px!important}
  .auth-ref-input{min-height:54px}
  .auth-ref-input input,.auth-ref-input select{min-height:52px}
  .auth-otp{gap:5px}
  .auth-otp-digit{height:52px;font-size:19px}
  .auth-sponsor-row{grid-template-columns:1fr}
}


/* v145 auth clean-shell hardening
   Completely isolate authentication / registration screens from platform chrome. */
html:has(body.auth-clean-page),
html.sidebar-pinned:has(body.auth-clean-page),
html.sidebar-icons-only:has(body.auth-clean-page){
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
}
body.auth-clean-page{
  margin:0!important;
  padding:0!important;
  inset:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:100vh!important;
  overflow-x:hidden!important;
  background:#06110f!important;
}
body.auth-clean-page .site-header,
body.auth-clean-page .mob-nav,
body.auth-clean-page .mob-nav-overlay,
body.auth-clean-page .sidebar-pin-btn,
body.auth-clean-page #sidebarPinBtn,
body.auth-clean-page #navToggle,
body.auth-clean-page .helper-fab,
body.auth-clean-page .helper-panel,
body.auth-clean-page #helperToggle,
body.auth-clean-page #helperPanel,
body.auth-clean-page .floating-help,
body.auth-clean-page .site-footer,
body.auth-clean-page .site-footer-mini,
body.auth-clean-page .footer-mini-links,
body.auth-clean-page .back-to-top,
body.auth-clean-page .chat-widget{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.auth-clean-page,
body.auth-clean-page .auth-ref-page,
body.auth-clean-page .auth-ref-shell{
  margin-inline:0!important;
  transform:none!important;
}
html.sidebar-pinned body.auth-clean-page,
html.sidebar-icons-only body.auth-clean-page,
html.sidebar-pinned body.auth-clean-page .auth-ref-page,
html.sidebar-icons-only body.auth-clean-page .auth-ref-page{
  padding-inline:0!important;
  margin-inline:0!important;
  width:100%!important;
  max-width:none!important;
}

/* Strong fixed contrast — independent from the platform theme variables. */
body.auth-clean-page .auth-ref-page{
  background:
    radial-gradient(circle at 50% 10%,rgba(27,52,44,.28),transparent 35%),
    #06110f!important;
  color:#f7f8f7!important;
}
body.auth-clean-page .auth-ref-heading h1{color:#ffffff!important}
body.auth-clean-page .auth-ref-heading p,
body.auth-clean-page .auth-ref-legal,
body.auth-clean-page .auth-ref-country{color:#aeb8b4!important}
body.auth-clean-page .auth-ref-card{
  background:#ffffff!important;
  color:#161b18!important;
  border-color:rgba(255,255,255,.10)!important;
}
body.auth-clean-page .auth-ref-card,
body.auth-clean-page .auth-ref-card *,
body.auth-clean-page .auth-ref-card label{
  text-shadow:none!important;
}
body.auth-clean-page .auth-ref-card label,
body.auth-clean-page .auth-ref-card b,
body.auth-clean-page .auth-ref-card h1,
body.auth-clean-page .auth-ref-card h2,
body.auth-clean-page .auth-ref-card h3{
  color:#242a27!important;
}
body.auth-clean-page .auth-ref-card p,
body.auth-clean-page .auth-ref-card small,
body.auth-clean-page .auth-ref-help,
body.auth-clean-page .auth-ref-account{
  color:#626b66!important;
}
body.auth-clean-page .auth-ref-input{
  background:#ffffff!important;
  border-color:#aeb7b2!important;
}
body.auth-clean-page .auth-ref-input input,
body.auth-clean-page .auth-ref-input select,
body.auth-clean-page .auth-ref-input textarea{
  color:#171c19!important;
  background:#ffffff!important;
  -webkit-text-fill-color:#171c19!important;
  caret-color:#171c19!important;
}
body.auth-clean-page .auth-ref-input input::placeholder,
body.auth-clean-page .auth-ref-input textarea::placeholder{
  color:#7b847f!important;
  opacity:1!important;
  -webkit-text-fill-color:#7b847f!important;
}
body.auth-clean-page .auth-ref-input select option{
  color:#171c19!important;
  background:#ffffff!important;
}
body.auth-clean-page .auth-ref-card a:not(.btn){
  color:#202622!important;
}
body.auth-clean-page .auth-ref-card .auth-field-error{color:#b42318!important}
body.auth-clean-page .auth-ref-card .auth-caps{color:#7b5e16!important}
body.auth-clean-page .auth-ref-primary,
body.auth-clean-page .auth-ref-card .btn.btn-primary{
  background:#07110f!important;
  border-color:#07110f!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
body.auth-clean-page .auth-ref-secondary,
body.auth-clean-page .auth-ref-card .btn.btn-line{
  background:#ffffff!important;
  border-color:#bfc7c3!important;
  color:#202622!important;
  -webkit-text-fill-color:#202622!important;
}
body.auth-clean-page .auth-ref-logo img{
  opacity:1!important;
  filter:none!important;
}


/* v145 auth polish — hidden states, cohesive spacing, full-screen background */
html{
  background:#06110f!important;
  min-height:100%!important;
}
html,body.auth-clean-page{
  min-height:100%!important;
}
body.auth-clean-page{
  padding-top:0!important;
  background:#06110f!important;
}
body.auth-clean-page [hidden]{
  display:none!important;
}

/* Explicitly protect transient UX states from legacy display rules. */
body.auth-clean-page .auth-caps[hidden],
body.auth-clean-page .auth-submit-loading[hidden],
body.auth-clean-page #pwEyeClosed[hidden],
body.auth-clean-page .eye-closed[hidden],
body.auth-clean-page .auth-flow-step[hidden]{
  display:none!important;
}
body.auth-clean-page .auth-caps:not([hidden]){
  display:inline-flex!important;
  align-items:center;
  gap:4px;
}
body.auth-clean-page .auth-submit-loading:not([hidden]){
  display:inline-flex!important;
  align-items:center;
  gap:8px;
}

/* Make the screen visually continuous from the very top. */
body.auth-clean-page .auth-ref-page{
  min-height:100vh!important;
  min-height:100dvh!important;
  padding-top:44px!important;
  background:#06110f!important;
  background-image:
    radial-gradient(circle at 50% 8%,rgba(25,48,41,.22),transparent 34%)!important;
  background-repeat:no-repeat!important;
}

/* Slightly tighter Shopify-like composition. */
body.auth-clean-page .auth-ref-logo{
  margin-bottom:24px!important;
}
body.auth-clean-page .auth-ref-heading{
  margin-bottom:22px!important;
}
body.auth-clean-page .auth-ref-heading h1{
  font-size:clamp(29px,3.4vw,39px)!important;
}
body.auth-clean-page .auth-ref-heading p{
  margin-top:6px!important;
}
body.auth-clean-page .auth-ref-card{
  padding:25px!important;
}
body.auth-clean-page .auth-ref-country{
  margin-top:24px!important;
  min-height:42px!important;
  padding-inline:16px!important;
  font-weight:600!important;
  letter-spacing:.01em!important;
}
body.auth-clean-page .auth-ref-legal{
  margin-top:54px!important;
}

/* Ensure the submit button always retains its intended height while loading. */
body.auth-clean-page .auth-submit{
  min-height:58px!important;
}
body.auth-clean-page .auth-submit[disabled]{
  opacity:.82!important;
  cursor:wait!important;
}

@media(max-width:720px){
  body.auth-clean-page .auth-ref-page{
    padding-top:28px!important;
  }
  body.auth-clean-page .auth-ref-card{
    padding:21px!important;
  }
  body.auth-clean-page .auth-ref-legal{
    margin-top:38px!important;
  }
}
@media(max-width:440px){
  body.auth-clean-page .auth-ref-page{
    padding-top:22px!important;
  }
  body.auth-clean-page .auth-ref-card{
    padding:18px!important;
  }
}


/* v145 final centering + registration clarity */
html, body.auth-clean-page{
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  background:#06110f!important;
}
body.auth-clean-page{
  overflow-y:auto!important;
}
body.auth-clean-page .auth-ref-page{
  width:100%!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px 16px!important;
  background:#06110f!important;
  background-image:radial-gradient(circle at 50% 8%,rgba(25,48,41,.20),transparent 34%)!important;
}
body.auth-clean-page .auth-ref-shell{
  width:min(100%,610px)!important;
  margin:0 auto!important;
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
}
body.auth-clean-page .auth-ref-shell-wide{
  width:min(100%,690px)!important;
}
body.auth-clean-page .auth-ref-logo{
  margin:0 auto 22px!important;
}
body.auth-clean-page .auth-ref-heading{
  margin:0 0 20px!important;
}
body.auth-clean-page .auth-ref-card{
  margin:0 auto!important;
}
body.auth-clean-page .auth-ref-country{
  margin-top:20px!important;
}
body.auth-clean-page .auth-ref-legal{
  margin-top:28px!important;
}

/* Registration terms: strong, readable hierarchy */
body.auth-clean-page .auth-terms{
  grid-template-columns:20px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  padding:12px 13px!important;
  border:1px solid #d8ddda!important;
  border-radius:11px!important;
  background:#f7f8f7!important;
  color:#3f4743!important;
  font-size:12px!important;
  line-height:1.55!important;
}
body.auth-clean-page .auth-terms input{
  width:17px!important;
  height:17px!important;
  margin:2px 0 0!important;
  accent-color:#07110f!important;
}
body.auth-clean-page .auth-terms>span{
  display:grid!important;
  gap:2px!important;
}
body.auth-clean-page .auth-terms b{
  color:#232925!important;
  font-size:12px!important;
  font-weight:700!important;
}
body.auth-clean-page .auth-terms small{
  color:#646d68!important;
  font-size:10.5px!important;
  line-height:1.5!important;
}

/* Account type icons: force a visible DIR icon container and contrast */
body.auth-clean-page .auth-role-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  border:1px solid #dce1de!important;
  border-radius:11px!important;
  background:#eef2f0!important;
  color:#26302b!important;
  display:grid!important;
  place-items:center!important;
  opacity:1!important;
  visibility:visible!important;
}
body.auth-clean-page .auth-role-icon svg,
body.auth-clean-page .auth-role-icon .icon{
  display:block!important;
  width:22px!important;
  height:22px!important;
  color:#26302b!important;
  stroke:currentColor!important;
  opacity:1!important;
  visibility:visible!important;
}
body.auth-clean-page .auth-role-option{
  min-height:82px!important;
}

/* Never let the standard login screen itself scroll when content fits.
   Registration/recovery can still scroll naturally if content is taller than viewport. */
@media(min-width:721px) and (min-height:700px){
  body.auth-clean-page .auth-ref-login{
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
  }
}
@media(max-width:720px){
  body.auth-clean-page .auth-ref-page{
    min-height:100dvh!important;
    padding:18px 12px!important;
  }
  body.auth-clean-page .auth-ref-shell,
  body.auth-clean-page .auth-ref-shell-wide{
    align-content:center!important;
  }
  body.auth-clean-page .auth-ref-logo{
    margin-bottom:18px!important;
  }
  body.auth-clean-page .auth-ref-heading{
    margin-bottom:17px!important;
  }
  body.auth-clean-page .auth-ref-legal{
    margin-top:22px!important;
  }
}
@media(max-width:440px){
  body.auth-clean-page .auth-ref-page{
    padding:14px 10px!important;
  }
  body.auth-clean-page .auth-ref-card,
  body.auth-clean-page .auth-ref-card-wide{
    padding:17px!important;
  }
  body.auth-clean-page .auth-role-option{
    min-height:76px!important;
    padding:11px 12px!important;
  }
  body.auth-clean-page .auth-role-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
  }
}


/* v145 login viewport lock + language control */
body.auth-clean-page:has(.auth-ref-login){
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.auth-clean-page .auth-ref-login{
  position:fixed!important;
  inset:0!important;
  z-index:1!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px 14px!important;
  background:#06110f!important;
}
body.auth-clean-page .auth-ref-login .auth-ref-shell{
  width:min(100%,610px)!important;
  max-height:calc(100dvh - 36px)!important;
  margin:auto!important;
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
}
body.auth-clean-page .auth-ref-language{
  position:fixed!important;
  z-index:5!important;
  inset-block-start:18px!important;
  inset-inline-end:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  min-height:34px!important;
  padding:6px 9px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.035)!important;
  color:#d8dfdc!important;
  text-decoration:none!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1!important;
  backdrop-filter:blur(6px)!important;
}
body.auth-clean-page .auth-ref-language:hover{
  border-color:rgba(255,255,255,.27)!important;
  background:rgba(255,255,255,.065)!important;
  color:#fff!important;
}
body.auth-clean-page .auth-ref-language .icon,
body.auth-clean-page .auth-ref-language svg{
  width:14px!important;
  height:14px!important;
  color:currentColor!important;
  stroke:currentColor!important;
}

/* Compact only when viewport height is short; layout stays identical. */
@media(max-height:760px){
  body.auth-clean-page .auth-ref-login{padding-block:12px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-logo{margin-bottom:14px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-logo img{width:72px!important;max-height:52px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading{margin-bottom:13px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading h1{font-size:27px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading p{font-size:12px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-card{padding:19px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-country{margin-top:13px!important;min-height:36px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-legal{margin-top:16px!important;gap:8px!important}
}
@media(max-height:620px){
  body.auth-clean-page .auth-ref-language{inset-block-start:10px!important;inset-inline-end:12px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-logo{margin-bottom:9px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-logo img{width:62px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading{margin-bottom:9px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading h1{font-size:23px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-heading p{font-size:10.5px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-card{padding:15px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-country{margin-top:9px!important;min-height:32px!important}
  body.auth-clean-page .auth-ref-login .auth-ref-legal{margin-top:10px!important}
}
@media(max-width:520px){
  body.auth-clean-page .auth-ref-language{
    inset-block-start:12px!important;
    inset-inline-end:12px!important;
    min-height:32px!important;
    padding:5px 8px!important;
  }
  body.auth-clean-page .auth-ref-login{padding:14px 11px!important}
}


/* v145 — Registration sizing aligned with Login */
body.auth-clean-page .auth-ref-register{
  width:100%!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px 16px!important;
  background:#06110f!important;
  background-image:radial-gradient(circle at 50% 8%,rgba(25,48,41,.20),transparent 34%)!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
  width:min(100%,610px)!important;
  max-width:610px!important;
  margin:0 auto!important;
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-logo{
  margin:0 auto 22px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-logo img{
  width:92px!important;
  max-height:70px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading{
  width:100%!important;
  margin:0 0 20px!important;
  text-align:center!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
  font-size:clamp(29px,3.4vw,39px)!important;
  line-height:1.13!important;
  font-weight:500!important;
  letter-spacing:-.035em!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading p{
  margin:6px auto 0!important;
  max-width:520px!important;
  font-size:13px!important;
  line-height:1.55!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
  width:min(100%,560px)!important;
  max-width:560px!important;
  padding:25px!important;
  border-radius:24px!important;
  margin:0 auto!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input{
  min-height:58px!important;
  border-radius:12px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input input,
body.auth-clean-page .auth-ref-register .auth-ref-input select{
  min-height:56px!important;
  padding:15px 17px!important;
  font-size:15px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input textarea{
  padding:15px 17px!important;
  font-size:14px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-primary,
body.auth-clean-page .auth-ref-register .btn.btn-primary{
  min-height:62px!important;
  border-radius:12px!important;
  font-size:15px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-secondary,
body.auth-clean-page .auth-ref-register .btn.btn-line{
  min-height:52px!important;
  border-radius:12px!important;
}
body.auth-clean-page .auth-ref-register .auth-role-list{
  gap:10px!important;
}
body.auth-clean-page .auth-ref-register .auth-role-option{
  min-height:78px!important;
  padding:13px 14px!important;
  border-radius:13px!important;
}
body.auth-clean-page .auth-ref-register .auth-register-grid{
  gap:12px!important;
}
body.auth-clean-page .auth-ref-register .auth-terms{
  margin-top:2px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-account{
  margin-top:2px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-legal{
  margin-top:28px!important;
}

/* Account-type step: lock to viewport exactly like login when it fits. */
@media(min-height:700px){
  body.auth-clean-page .auth-ref-register:has(.auth-role-list){
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    overflow:hidden!important;
  }
}

/* Details step: same dimensions, but allow natural scroll only when required. */
body.auth-clean-page .auth-ref-register:has(.auth-register-form){
  align-items:flex-start!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  padding-block:24px!important;
}
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-shell-wide{
  margin-block:auto!important;
}

/* Short screens: compact proportionally without changing the composition. */
@media(max-height:760px){
  body.auth-clean-page .auth-ref-register{
    padding-block:14px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo{
    margin-bottom:14px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo img{
    width:74px!important;
    max-height:54px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading{
    margin-bottom:13px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
    font-size:27px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading p{
    font-size:12px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    padding:20px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-input{
    min-height:52px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-input input,
  body.auth-clean-page .auth-ref-register .auth-ref-input select{
    min-height:50px!important;
    padding:12px 14px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-primary,
  body.auth-clean-page .auth-ref-register .btn.btn-primary{
    min-height:54px!important;
  }
}

/* Mobile: same login proportions, one-column form. */
@media(max-width:720px){
  body.auth-clean-page .auth-ref-register{
    padding:18px 12px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
    width:100%!important;
    max-width:100%!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    width:100%!important;
    max-width:560px!important;
    padding:21px!important;
    border-radius:20px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-register-grid{
    grid-template-columns:1fr!important;
  }
  body.auth-clean-page .auth-ref-register .auth-register-full{
    grid-column:auto!important;
  }
}
@media(max-width:440px){
  body.auth-clean-page .auth-ref-register{
    padding:14px 10px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    padding:18px!important;
    border-radius:18px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo{
    margin-bottom:16px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading{
    margin-bottom:15px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
    font-size:26px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-primary,
  body.auth-clean-page .auth-ref-register .btn.btn-primary{
    min-height:56px!important;
  }
}


/* v145 — REGISTER exact lock to LOGIN composition
   Page itself never scrolls. Long registration content scrolls inside the white card only. */
body.auth-clean-page:has(.auth-ref-register){
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  background:#06110f!important;
}

body.auth-clean-page .auth-ref-register{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px 14px!important;
  background:#06110f!important;
  background-image:radial-gradient(circle at 50% 8%,rgba(25,48,41,.20),transparent 34%)!important;
}

/* Same shell footprint and center point as Login */
body.auth-clean-page .auth-ref-register .auth-ref-shell,
body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
  width:min(100%,610px)!important;
  max-width:610px!important;
  max-height:calc(100dvh - 36px)!important;
  margin:auto!important;
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
}

/* Same logo and heading geometry as Login */
body.auth-clean-page .auth-ref-register .auth-ref-logo{
  margin:0 auto 22px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-logo img{
  width:92px!important;
  max-height:70px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading{
  width:100%!important;
  margin:0 0 20px!important;
  text-align:center!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
  font-size:clamp(29px,3.4vw,39px)!important;
  line-height:1.13!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading p{
  margin:6px auto 0!important;
  max-width:520px!important;
  font-size:13px!important;
}

/* Exact same card width and visual position as Login */
body.auth-clean-page .auth-ref-register .auth-ref-card,
body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
  width:min(100%,560px)!important;
  max-width:560px!important;
  margin:0 auto!important;
  padding:25px!important;
  border-radius:24px!important;
}

/* Account-type screen stays fully static */
body.auth-clean-page .auth-ref-register .auth-role-list{
  width:100%!important;
}

/* Long details form: page stays fixed; only card body can scroll */
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide{
  max-height:min(560px,calc(100dvh - 245px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
}
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide::-webkit-scrollbar{
  width:6px!important;
}
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide::-webkit-scrollbar-thumb{
  background:#cbd2ce!important;
  border-radius:999px!important;
}
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide::-webkit-scrollbar-track{
  background:transparent!important;
}

/* Neutralize old rules that were pushing details page to the top */
body.auth-clean-page .auth-ref-register:has(.auth-register-form){
  align-items:center!important;
  overflow:hidden!important;
  padding:18px 14px!important;
}
body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-shell-wide{
  margin:auto!important;
  align-content:center!important;
}

/* Keep the language control independent of composition */
body.auth-clean-page .auth-ref-register .auth-ref-language{
  position:fixed!important;
  inset-block-start:18px!important;
  inset-inline-end:22px!important;
}

/* Short laptop screens: compact like Login while preserving the same center point */
@media(max-height:760px){
  body.auth-clean-page .auth-ref-register{
    padding:12px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-shell,
  body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
    max-height:calc(100dvh - 24px)!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo{
    margin-bottom:14px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo img{
    width:74px!important;
    max-height:54px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading{
    margin-bottom:13px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
    font-size:27px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-heading p{
    font-size:12px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card,
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    padding:20px!important;
  }
  body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide{
    max-height:calc(100dvh - 190px)!important;
  }
}

/* Mobile: still fixed to the exact center; scroll remains internal to card */
@media(max-width:720px){
  body.auth-clean-page .auth-ref-register{
    padding:14px 11px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-shell,
  body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
    width:100%!important;
    max-width:610px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card,
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    width:min(100%,560px)!important;
    max-width:560px!important;
    padding:21px!important;
    border-radius:20px!important;
  }
  body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide{
    max-height:calc(100dvh - 205px)!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-language{
    inset-block-start:12px!important;
    inset-inline-end:12px!important;
  }
}

@media(max-width:440px){
  body.auth-clean-page .auth-ref-register{
    padding:10px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo{
    margin-bottom:14px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card,
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    padding:18px!important;
    border-radius:18px!important;
  }
  body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide{
    max-height:calc(100dvh - 185px)!important;
  }
}

/* DIR Design Tokens migration - Phase 11
   Auth surfaces now inherit the global theme engine while preserving the existing layout. */
body.auth-clean-page{
  background:var(--app-sidebar,#06110f)!important;
  color:var(--app-on-primary,#fff)!important;
}
.auth-ref-page{
  background:
    radial-gradient(circle at 50% 12%,color-mix(in srgb,var(--app-primary,#008060) 12%,transparent),transparent 34%),
    var(--app-sidebar,#06110f);
  color:var(--app-on-primary,#fff);
}
.auth-ref-heading h1{color:var(--app-on-primary,#fff)}
.auth-ref-heading p{color:color-mix(in srgb,var(--app-on-primary,#fff) 68%,transparent)}
.auth-ref-card,
.auth-ref-card-wide{
  background:var(--app-card,#fff);
  color:var(--app-text,#202223);
  border-color:var(--app-border,#e1e3e5);
  box-shadow:var(--app-shadow-panel,0 18px 60px rgba(0,0,0,.24));
}
.auth-field label,.auth-label-row label{color:var(--app-text,#202223)}
.auth-field label small,
.auth-ref-muted,
.auth-ref-help,
.auth-ref-note{color:var(--app-muted-text,#6d7175)}
.auth-label-row a,.auth-ref-card a{color:var(--app-text,#202223)}
.auth-ref-input{
  border-color:var(--app-border,#e1e3e5);
  background:var(--app-input,var(--app-card,#fff));
}
.auth-ref-input:focus-within{
  border-color:var(--app-primary,#008060);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--app-primary,#008060) 14%,transparent);
}
.auth-ref-input input,
.auth-ref-input select,
.auth-ref-input textarea{
  color:var(--app-text,#202223)!important;
}
.auth-ref-input input::placeholder,
.auth-ref-input textarea::placeholder{color:var(--app-muted-text,#6d7175)}
.auth-eye{color:var(--app-muted-text,#6d7175)}
.auth-eye:hover{background:var(--app-hover,#f6f6f7);color:var(--app-text,#202223)}
.auth-ref-primary,
.auth-ref-card .btn.btn-primary{
  border-color:var(--app-primary,#008060)!important;
  background:var(--app-primary,#008060)!important;
  color:var(--app-on-primary,#fff)!important;
}
.auth-ref-primary:hover,
.auth-ref-card .btn.btn-primary:hover{
  background:var(--app-primary-hover,var(--primary-hover,#006e52))!important;
  border-color:var(--app-primary-hover,var(--primary-hover,#006e52))!important;
}
.auth-ref-secondary,
.auth-ref-card .btn.btn-line{
  border-color:var(--app-border,#e1e3e5)!important;
  background:var(--app-card,#fff)!important;
  color:var(--app-text,#202223)!important;
}
.auth-ref-secondary:hover,
.auth-ref-card .btn.btn-line:hover{background:var(--app-hover,#f6f6f7)!important}
.auth-ref-divider{color:var(--app-muted-text,#6d7175)}
.auth-ref-divider:before,.auth-ref-divider:after{background:var(--app-border,#e1e3e5)}
.auth-ref-card .alert-success,
.auth-ref-success{background:var(--app-success-soft);border-color:var(--app-success-border);color:var(--app-success)}
.auth-ref-card .alert-warning,
.auth-ref-warning{background:var(--app-warning-soft);border-color:var(--app-warning-border);color:var(--app-warning)}
.auth-ref-card .alert-danger,
.auth-ref-error{background:var(--app-danger-soft);border-color:var(--app-danger-border);color:var(--app-danger)}
.auth-ref-card .alert-info,
.auth-ref-info{background:var(--app-info-soft);border-color:var(--app-info-border);color:var(--app-info)}
.auth-ref-card hr{border-color:var(--app-border,#e1e3e5)}
.auth-ref-card :focus-visible{outline-color:var(--app-primary,#008060)}
[data-theme="dark"] .auth-ref-card,
[data-theme="dark"] .auth-ref-card-wide{background:var(--app-card);color:var(--app-text);border-color:var(--app-border)}
[data-theme="dark"] .auth-ref-input{background:var(--app-input);border-color:var(--app-border)}
[data-theme="dark"] .auth-ref-secondary,
[data-theme="dark"] .auth-ref-card .btn.btn-line{background:var(--app-card)!important;color:var(--app-text)!important;border-color:var(--app-border)!important}


/* =====================================================================
   v898989002 — Registration / client-request UI cohesion
   Visual-only hardening. No registration, approval or account logic changed.
   ===================================================================== */
body.auth-clean-page .auth-ref-register{
  --auth-reg-shell: 720px;
  --auth-reg-card: 680px;
  box-sizing:border-box;
  width:100%;
  min-height:100dvh;
  padding:clamp(20px,4vh,44px) clamp(12px,3vw,24px)!important;
}
body.auth-clean-page .auth-ref-register *,
body.auth-clean-page .auth-ref-register *::before,
body.auth-clean-page .auth-ref-register *::after{box-sizing:border-box}
body.auth-clean-page .auth-ref-register .auth-ref-shell-wide{
  width:min(100%,var(--auth-reg-shell))!important;
  max-width:var(--auth-reg-shell)!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-logo{
  margin-bottom:18px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-logo img{
  width:88px!important;
  max-height:64px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading{
  margin-bottom:18px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading h1{
  font-size:clamp(28px,3vw,38px)!important;
  line-height:1.16!important;
  font-weight:560!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-heading p{
  max-width:570px!important;
  margin-top:7px!important;
  font-size:13px!important;
  line-height:1.65!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
  width:min(100%,var(--auth-reg-card))!important;
  max-width:var(--auth-reg-card)!important;
  padding:clamp(22px,3vw,30px)!important;
  border:1px solid color-mix(in srgb,var(--app-border,#e1e3e5) 88%,transparent)!important;
  border-radius:20px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.25),0 2px 8px rgba(0,0,0,.08)!important;
}
body.auth-clean-page .auth-ref-register .auth-register-form{gap:20px!important}
body.auth-clean-page .auth-ref-register .auth-register-grid{
  gap:16px 14px!important;
  align-items:start!important;
}
body.auth-clean-page .auth-ref-register .auth-field{gap:7px!important;min-width:0}
body.auth-clean-page .auth-ref-register .auth-field label{
  margin:0!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
body.auth-clean-page .auth-ref-register .auth-field label small{
  font-size:10.5px!important;
  font-weight:550!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input{
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  border-radius:10px!important;
  border-width:1px!important;
  overflow:hidden!important;
  box-shadow:0 1px 0 rgba(0,0,0,.02)!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input:focus-within{
  border-color:var(--app-primary,#008060)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--app-primary,#008060) 14%,transparent)!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input input,
body.auth-clean-page .auth-ref-register .auth-ref-input select{
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  padding:12px 14px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  font-size:13.5px!important;
  line-height:1.4!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-input textarea{
  width:100%!important;
  min-width:0!important;
  min-height:118px!important;
  padding:13px 14px!important;
  border:0!important;
  outline:0!important;
  resize:vertical!important;
  background:transparent!important;
  font-size:13.5px!important;
  line-height:1.65!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-password input{padding-inline-end:48px!important}
body.auth-clean-page .auth-ref-register .auth-eye{inset-inline-end:7px!important}
body.auth-clean-page .auth-ref-register .auth-ref-primary,
body.auth-clean-page .auth-ref-register .btn.btn-primary{
  min-height:52px!important;
  border-radius:10px!important;
  font-size:13.5px!important;
  font-weight:750!important;
  box-shadow:none!important;
}
body.auth-clean-page .auth-ref-register .btn.btn-line{
  min-height:48px!important;
  border-radius:10px!important;
  font-size:12.5px!important;
  font-weight:700!important;
}
body.auth-clean-page .auth-ref-register .auth-state{
  border-radius:10px!important;
  padding:11px 12px!important;
  margin-bottom:14px!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-subcard{
  padding:15px!important;
  border-radius:12px!important;
}
body.auth-clean-page .auth-ref-register .auth-terms{
  gap:10px!important;
  padding:12px!important;
  border:1px solid var(--app-border,#e1e3e5)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--app-card,#fff) 94%,var(--app-hover,#f6f6f7))!important;
}
body.auth-clean-page .auth-ref-register .auth-terms input{width:16px;height:16px;margin-top:2px!important}
body.auth-clean-page .auth-ref-register .auth-ref-account,
body.auth-clean-page .auth-ref-register .auth-ref-help{
  font-size:11px!important;
  line-height:1.6!important;
}
body.auth-clean-page .auth-ref-register .auth-ref-legal{
  margin-top:20px!important;
  font-size:10px!important;
}

/* Request form shown in the supplied screenshot: slightly calmer, wider desktop card. */
body.auth-clean-page .auth-ref-client-request{
  --auth-reg-shell:760px;
  --auth-reg-card:700px;
}
body.auth-clean-page .auth-ref-client-request .auth-client-request-card{
  padding:28px!important;
}
body.auth-clean-page .auth-ref-client-request .auth-register-full{margin-top:1px}
body.auth-clean-page .auth-ref-client-request .auth-ref-help{
  margin:0!important;
  padding-top:1px!important;
  text-align:center!important;
}

/* Registration role selector: stronger SaaS hierarchy without changing icons/content. */
body.auth-clean-page .auth-ref-register .auth-role-list{gap:9px!important}
body.auth-clean-page .auth-ref-register .auth-role-option{
  min-height:74px!important;
  padding:12px 13px!important;
  border-radius:12px!important;
  transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
body.auth-clean-page .auth-ref-register .auth-role-option:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--app-primary,#008060) 40%,var(--app-border,#e1e3e5))!important;
  box-shadow:0 8px 22px rgba(0,0,0,.06)!important;
}
body.auth-clean-page .auth-ref-register .auth-role-icon{
  width:40px!important;height:40px!important;border-radius:10px!important;
}
body.auth-clean-page .auth-ref-register .auth-role-option b{font-size:13.5px!important}
body.auth-clean-page .auth-ref-register .auth-role-option small{font-size:10.8px!important;line-height:1.5!important}

/* Tablet */
@media (max-width:820px){
  body.auth-clean-page .auth-ref-register{
    padding:24px 16px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{
    width:min(100%,640px)!important;
  }
}

/* Mobile: page scrolls naturally; card never traps or clips content. */
@media (max-width:720px){
  body.auth-clean-page:has(.auth-ref-register){
    width:100%!important;
    height:auto!important;
    min-height:100dvh!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  body.auth-clean-page .auth-ref-register,
  body.auth-clean-page .auth-ref-register:has(.auth-register-form){
    min-height:100dvh!important;
    height:auto!important;
    overflow:visible!important;
    align-items:start!important;
    padding:22px 14px 26px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-shell-wide,
  body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-shell-wide{
    width:100%!important;
    margin:0 auto!important;
  }
  body.auth-clean-page .auth-ref-register .auth-ref-logo{margin-bottom:14px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-logo img{width:76px!important;max-height:56px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading{margin-bottom:15px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{font-size:27px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading p{font-size:12px!important;max-width:420px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide,
  body.auth-clean-page .auth-ref-register:has(.auth-register-form) .auth-ref-card-wide{
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    overflow:visible!important;
    padding:20px!important;
    border-radius:18px!important;
  }
  body.auth-clean-page .auth-ref-register .auth-register-grid{grid-template-columns:1fr!important;gap:14px!important}
  body.auth-clean-page .auth-ref-register .auth-register-full{grid-column:auto!important}
  body.auth-clean-page .auth-ref-register .auth-sponsor-row{grid-template-columns:1fr!important}
  body.auth-clean-page .auth-ref-register .auth-sponsor-row .btn{width:100%!important}
  body.auth-clean-page .auth-ref-register .auth-ref-legal{margin-top:18px!important}
}

/* Small phones */
@media (max-width:440px){
  body.auth-clean-page .auth-ref-register,
  body.auth-clean-page .auth-ref-register:has(.auth-register-form){padding:18px 10px 22px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{padding:17px!important;border-radius:16px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{font-size:25px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-input input,
  body.auth-clean-page .auth-ref-register .auth-ref-input select,
  body.auth-clean-page .auth-ref-register .auth-ref-input textarea{font-size:16px!important} /* prevents iOS input zoom */
  body.auth-clean-page .auth-ref-register .auth-role-option{grid-template-columns:auto minmax(0,1fr) auto!important;padding:11px!important}
}

/* Landscape phones / short tablets */
@media (max-height:650px) and (min-width:721px){
  body.auth-clean-page .auth-ref-register{padding-block:16px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-logo{margin-bottom:10px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-logo img{width:68px!important;max-height:48px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading{margin-bottom:12px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-heading h1{font-size:25px!important}
  body.auth-clean-page .auth-ref-register .auth-ref-card-wide{padding:19px!important}
}
