/* iBlogger v140 — rebuilt desktop authentication experience.
   Desktop only: the approved mobile auth renderer and its footer-free layout stay untouched. */
@media (min-width: 621px) {
  html[data-theme="light"] body.auth-page.auth-next {
    min-height: 100vh !important;
    background: #f4f5fb !important;
    color: #25294b !important;
    overflow-x: hidden !important;
  }

  html[data-theme="light"] body.auth-page.auth-next .site-header-spacer {
    height: 86px !important;
    min-height: 86px !important;
    flex-basis: 86px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain.authn-shell,
  html[data-theme="light"] body.auth-page.auth-next #authMain.authn-shell.authn-shell-signup {
    display: grid !important;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr) !important;
    direction: rtl !important;
    align-items: stretch !important;
    width: min(1500px, calc(100% - 56px)) !important;
    max-width: 1500px !important;
    height: auto !important;
    min-height: max(680px, calc(100vh - 120px)) !important;
    margin: 8px auto 24px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(222, 224, 240, .9) !important;
    border-radius: 30px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(48, 48, 105, .10) !important;
    isolation: isolate;
    view-transition-name: ib-auth-panel;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form-pane {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 38px clamp(22px, 3.1vw, 54px) !important;
    overflow: visible !important;
    background:
      radial-gradient(circle at 7% 4%, rgba(126, 105, 255, .08), transparent 27%),
      radial-gradient(circle at 95% 96%, rgba(227, 144, 221, .08), transparent 25%),
      #fff !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.login-page #authMain .authn-form-wrap,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-signup-wrap {
    display: block !important;
    width: min(100%, 500px) !important;
    max-width: 560px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: auto !important;
    padding: 32px clamp(22px, 2.6vw, 38px) 28px !important;
    overflow: visible !important;
    border: 1px solid #e9e8f4 !important;
    border-radius: 26px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 18px 52px rgba(54, 48, 113, .09) !important;
    transform: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-signup-wrap {
    width: min(100%, 560px) !important;
    padding: 27px clamp(20px, 2.2vw, 32px) 24px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-auth-tabs {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: min(100%, 360px) !important;
    height: 48px !important;
    margin: 0 auto 25px !important;
    padding: 4px !important;
    gap: 4px !important;
    overflow: visible !important;
    border: 1px solid #eeeaf8 !important;
    border-radius: 999px !important;
    background: #f5f3fb !important;
    view-transition-name: auth-tabs;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-auth-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #777b99 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    transition: color .24s ease, background-color .24s ease, box-shadow .24s ease, transform .24s ease !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-auth-tab svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-auth-tab.active {
    color: #fff !important;
    background: linear-gradient(105deg, #a17aff 0%, #8050f4 62%, #6d38ed 100%) !important;
    box-shadow: 0 7px 18px rgba(113, 67, 236, .22) !important;
    view-transition-name: auth-active-tab;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-heading {
    display: block !important;
    margin: 0 0 23px !important;
    text-align: center !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 6px 12px !important;
    border: 1px solid #e8e1ff !important;
    border-radius: 999px !important;
    background: #f8f5ff !important;
    color: #8055e9 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-heading h1 {
    max-width: 100% !important;
    margin: 0 auto 8px !important;
    color: #1b2048 !important;
    font-size: clamp(25px, 2.2vw, 32px) !important;
    line-height: 1.35 !important;
    letter-spacing: -.035em !important;
    font-weight: 900 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-heading p {
    max-width: 390px !important;
    margin: 0 auto !important;
    color: #858aa5 !important;
    font-size: 13px !important;
    line-height: 1.9 !important;
    text-align: center !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-field {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-field > label,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-label-row label,
  html[data-theme="light"] body.auth-page.auth-next #authMain .signup-field .authn-input > label {
    display: block !important;
    margin: 0 2px !important;
    color: #303657 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-label-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-forgot,
  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-forgot-light {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #8152ef !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    font-weight: 850 !important;
    cursor: pointer !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-input {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 14px !important;
    border: 1.5px solid #e4e2ef !important;
    border-radius: 14px !important;
    background: #fcfbff !important;
    box-shadow: none !important;
    direction: ltr !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-input:focus-within {
    border-color: #a184f6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(139, 102, 238, .10) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-input .auth-input-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    color: #a3a8c0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-input input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #293257 !important;
    direction: ltr !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: normal !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-input input::placeholder {
    color: #b0b4c8 !important;
    font-size: 12px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-password-toggle {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #969db8 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-password-toggle svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form .auth-error {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 3px !important;
    overflow: visible !important;
    color: #c43f60 !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form .auth-error:empty,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form .auth-error[hidden] {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.login-page #authMain .auth-ref-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.login-page #authMain .authn-remember {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    color: #777d99 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.login-page #authMain .authn-remember input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #8052ef !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-submit,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-google {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 51px !important;
    height: 51px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-submit {
    border: 0 !important;
    background: linear-gradient(105deg, #7042f4 0%, #8d54f3 55%, #6c35e9 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(119, 70, 232, .20) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-submit:hover {
    transform: translateY(-1px) !important;
    filter: saturate(1.08) !important;
    box-shadow: 0 14px 28px rgba(119, 70, 232, .25) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-divider {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    color: #a2a5ba !important;
    font-size: 11px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-divider::before,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-divider::after {
    content: "" !important;
    display: block !important;
    height: 1px !important;
    flex: 1 1 auto !important;
    background: #eceaf3 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-google {
    border: 1.5px solid #e5e3ef !important;
    background: #fff !important;
    color: #3d4261 !important;
    box-shadow: 0 4px 12px rgba(45, 42, 92, .035) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-google svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-switch {
    margin: 20px 0 0 !important;
    color: #898da7 !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
    text-align: center !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-switch a {
    color: #8052ef !important;
    font-weight: 900 !important;
  }

  /* Signup form: aligned two-column fields with full-width role, terms and actions. */
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 12px 13px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > #registerRole {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain #roleError,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-terms-wrap,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-submit,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-divider,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-google {
    grid-column: 1 / -1 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-name,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-email,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-password,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) 28px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 1px 9px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 7px 11px !important;
    direction: rtl !important;
    text-align: right !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input .auth-input-icon {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    width: 17px !important;
    height: 17px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > label {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    margin: 0 !important;
    font-size: 10.5px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > input {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: 100% !important;
    height: 25px !important;
    min-height: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    text-align: left !important;
    font-size: 12px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > .authn-password-toggle {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    width: 27px !important;
    height: 28px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm .authn-input {
    grid-template-columns: minmax(0, 1fr) 28px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm .authn-input > label,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm .authn-input > input {
    grid-column: 1 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm .authn-input > .authn-password-toggle {
    grid-column: 2 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role .authn-input {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 2px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 6px 13px !important;
    direction: rtl !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role .authn-input > label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: end !important;
    font-size: 10.5px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role select {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #34395b !important;
    font-size: 12px !important;
    direction: rtl !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-strength {
    display: grid !important;
    gap: 5px !important;
    margin: 5px 0 0 !important;
    padding: 7px 9px !important;
    border: 1px solid #ebe8f5 !important;
    border-radius: 10px !important;
    background: #faf9fe !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .strength-bars {
    display: flex !important;
    gap: 4px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .strength-bars span {
    display: block !important;
    flex: 1 1 0 !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: #e8e5f1 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .strength-copy {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    color: #9296ad !important;
    font-size: 9px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-terms-wrap {
    display: block !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #ebe8f5 !important;
    border-radius: 12px !important;
    background: #faf9fe !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-terms {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    color: #777d99 !important;
    font-size: 10.5px !important;
    line-height: 1.75 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-terms input {
    width: 16px !important;
    height: 16px !important;
    margin: 2px 0 0 !important;
    accent-color: #8052ef !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-terms a {
    color: #8052ef !important;
    font-weight: 800 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-submit,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-google,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-divider {
    grid-column: 1 / -1 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-submit {
    min-height: 49px !important;
    height: 49px !important;
  }

  /* One responsive visual panel for both auth states. */
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-signup {
    position: relative !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 680px !important;
    padding: clamp(34px, 4vw, 64px) !important;
    overflow: hidden !important;
    border: 0 !important;
    color: #fff !important;
    background:
      radial-gradient(ellipse at 82% 10%, rgba(116, 130, 255, .28), transparent 27%),
      radial-gradient(ellipse at 12% 83%, rgba(192, 105, 229, .22), transparent 30%),
      linear-gradient(145deg, #17175c 0%, #242080 50%, #382080 100%) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual::before,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual::after {
    z-index: 0 !important;
    opacity: .8 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-noise,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-orb {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-inner {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 16px !important;
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    height: auto !important;
    margin: auto !important;
    padding: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-kicker-dark,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-title-dark,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-copy-dark,
  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-collage-exact,
  html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-points-exact {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-kicker-light {
    position: relative !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    height: 34px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 1px solid rgba(255, 255, 255, .20) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .075) !important;
    color: #f0efff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    backdrop-filter: blur(12px) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-kicker-light i {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
    border-radius: 50% !important;
    background: #83e1ff !important;
    box-shadow: 0 0 0 4px rgba(131, 225, 255, .13) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual h2.authn-visual-title-light {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    max-width: 15ch !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(32px, 3.2vw, 50px) !important;
    line-height: 1.28 !important;
    letter-spacing: -.045em !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual h2.authn-visual-title-light em {
    display: inline !important;
    font-size: inherit !important;
    font-style: normal !important;
    background: linear-gradient(100deg, #b8d8ff 0%, #d7a6ff 55%, #f0a8dc 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual p.authn-visual-copy-light {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    max-width: 54ch !important;
    margin: 0 !important;
    color: rgba(247, 248, 255, .86) !important;
    font-size: 14px !important;
    line-height: 1.95 !important;
    text-align: right !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-collage {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    min-height: 250px !important;
    margin: 8px 0 2px !important;
    overflow: visible !important;
    perspective: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-photo {
    position: absolute !important;
    top: 8px !important;
    width: 27% !important;
    max-width: 184px !important;
    height: 220px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 3px solid rgba(255, 255, 255, .94) !important;
    border-radius: 21px !important;
    background: rgba(255, 255, 255, .12) !important;
    box-shadow: 0 18px 36px rgba(7, 6, 52, .32) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-photo-a {
    left: 4% !important;
    right: auto !important;
    top: 20px !important;
    transform: rotate(-5deg) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-photo-b {
    left: 36.5% !important;
    right: auto !important;
    top: 0 !important;
    transform: rotate(1deg) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-photo-c {
    left: auto !important;
    right: 4% !important;
    top: 20px !important;
    transform: rotate(5deg) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-float-card {
    position: absolute !important;
    z-index: 3 !important;
    display: grid !important;
    gap: 2px !important;
    min-width: 124px !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(255, 255, 255, .7) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #34345f !important;
    box-shadow: 0 10px 24px rgba(7, 6, 52, .18) !important;
    backdrop-filter: blur(12px) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-float-card span {
    color: #777b9a !important;
    font-size: 9px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-float-card strong {
    color: #2c3158 !important;
    font-size: 11px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-float-top {
    top: -4px !important;
    left: 1% !important;
    right: auto !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-float-bottom {
    right: 1% !important;
    left: auto !important;
    bottom: -4px !important;
    top: auto !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-points {
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-points span {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .075) !important;
    color: rgba(255, 255, 255, .9) !important;
    font-size: 10px !important;
    line-height: 1.7 !important;
    font-weight: 750 !important;
    backdrop-filter: blur(10px) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-points b {
    flex: 0 0 auto !important;
    color: #c4b4ff !important;
    font-size: 11px !important;
  }

  /* Keep the transition local to the auth panel; the global site header remains steady. */
  ::view-transition-old(ib-auth-panel) {
    animation: ibAuthPanelOut .22s cubic-bezier(.4, 0, 1, 1) both;
  }

  ::view-transition-new(ib-auth-panel) {
    animation: ibAuthPanelIn .34s cubic-bezier(.2, .8, .2, 1) both;
  }

  ::view-transition-old(auth-active-tab),
  ::view-transition-new(auth-active-tab) {
    animation-duration: .32s;
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  }

  @keyframes ibAuthPanelOut {
    to { opacity: 0; transform: translateX(-18px) scale(.99); filter: blur(2px); }
  }

  @keyframes ibAuthPanelIn {
    from { opacity: 0; transform: translateX(18px) scale(.99); filter: blur(2px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  }

  #authMain.authn-transition-out { animation: ibAuthPanelOut .15s ease both !important; }
  #authMain.authn-transition-in { animation: ibAuthPanelIn .34s cubic-bezier(.2, .8, .2, 1) both !important; }

  @media (max-width: 1040px) {
    html[data-theme="light"] body.auth-page.auth-next #authMain.authn-shell,
    html[data-theme="light"] body.auth-page.auth-next #authMain.authn-shell.authn-shell-signup {
      grid-template-columns: minmax(0, 1fr) !important;
      width: calc(100% - 36px) !important;
      min-height: 0 !important;
      overflow: visible !important;
    }

    html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual {
      display: none !important;
    }

    html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form-pane {
      grid-column: 1 !important;
      grid-row: 1 !important;
      min-height: 690px !important;
      padding: 34px 24px !important;
      border-radius: 28px !important;
    }

    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-form-pane {
      min-height: 0 !important;
    }

    html[data-theme="light"] body.auth-page.auth-next #authMain .authn-form-wrap,
    html[data-theme="light"] body.auth-page.auth-next #authMain .authn-signup-wrap {
      width: min(100%, 560px) !important;
      margin: 0 auto !important;
    }
  }

  @media (max-width: 720px) {
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-name,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-email,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-password,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm {
      grid-column: 1 / -1 !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    ::view-transition-old(ib-auth-panel),
    ::view-transition-new(ib-auth-panel),
    ::view-transition-old(auth-active-tab),
    ::view-transition-new(auth-active-tab),
    #authMain.authn-transition-out,
    #authMain.authn-transition-in {
      animation: none !important;
    }

    html[data-theme="light"] body.auth-page.auth-next #authMain .auth-ref-auth-tab {
      transition: none !important;
    }
  }


  /* Fine alignment pass: remove the duplicated recovery action and let Persian copy wrap naturally. */
  html[data-theme="light"] body.auth-page.auth-next.login-page #authMain .authn-label-row .authn-forgot {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-inner {
    align-items: stretch !important;
    direction: rtl !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual h2.authn-visual-title-light {
    width: 100% !important;
    max-width: 620px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual p.authn-visual-copy-light {
    width: 100% !important;
    max-width: 580px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Use a simple stacked control instead of nested grids for reliable rendering at every desktop width. */
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 7px 13px !important;
    direction: rtl !important;
    text-align: right !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input .auth-input-icon {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > label {
    order: 1 !important;
    display: block !important;
    align-self: stretch !important;
    margin: 0 !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > input {
    order: 2 !important;
    display: block !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 25px !important;
    min-height: 25px !important;
    margin: 0 !important;
    padding: 0 1px !important;
    direction: ltr !important;
    text-align: left !important;
    font-size: 12px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field .authn-input > .authn-password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    left: auto !important;
    z-index: 2 !important;
    width: 28px !important;
    height: 30px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-password .authn-input,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-confirm .authn-input {
    padding-right: 43px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role .authn-input {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 6px 13px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role .authn-input > label {
    order: 1 !important;
    align-self: stretch !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .signup-field-role select {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 27px !important;
    min-height: 27px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #34395b !important;
    font-size: 12px !important;
    direction: rtl !important;
  }


  /* Explicitly reset legacy absolute coordinates (the earlier reference sheets used fixed pixel offsets). */
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-inner,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-kicker-light,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-title-light,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-copy-light,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-collage,
  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-points {
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-inner {
    width: calc(100% - 36px) !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual-kicker-light {
    align-self: flex-start !important;
    margin: 0 0 2px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual h2.authn-visual-title-light {
    align-self: stretch !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: normal !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-visual p.authn-visual-copy-light {
    align-self: stretch !important;
    padding: 0 4px !important;
    text-align: right !important;
    direction: rtl !important;
    white-space: normal !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px 13px !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > #registerRole {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-role,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > #roleError,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-terms-wrap,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-submit,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-divider,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .authn-google {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-name,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-email,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-password,
  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-confirm {
    flex: 1 1 calc(50% - 7px) !important;
    width: calc(50% - 7px) !important;
    min-width: 0 !important;
  }

  html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > #roleError:empty {
    display: none !important;
  }


  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-password-toggle .eye-off {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-password-toggle.is-visible .eye-on {
    display: none !important;
  }

  html[data-theme="light"] body.auth-page.auth-next #authMain .authn-password-toggle.is-visible .eye-off {
    display: block !important;
  }

  @media (max-width: 720px) {
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-name,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-email,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-password,
    html[data-theme="light"] body.auth-page.auth-next.signup-page #authMain .authn-register-form > .signup-field-confirm {
      flex: 0 0 100% !important;
      width: 100% !important;
    }
  }
}
