html.laya-auth-document,
html.laya-auth-document body {
    height: 100%;
    overflow: hidden;
}

.laya-auth-main {
    height: 100svh;
    max-height: 100svh;
    min-height: 0;
    overflow: hidden;
    background: #f6f7fb;
}

.laya-auth-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #e4e6ee;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.laya-auth-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.laya-auth-header__logo,
.laya-auth-footer__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.laya-auth-header__logo img {
    width: 118px;
    height: auto;
}

.laya-auth-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-inline: auto;
}

.laya-auth-header__nav a,
.laya-auth-header__hint,
.laya-auth-footer__links a {
    color: #53586d;
    font-size: .79rem;
    font-weight: 650;
}

.laya-auth-header__nav a {
    transition: color .18s ease;
}

.laya-auth-header__nav a:hover,
.laya-auth-header__nav a:focus-visible,
.laya-auth-footer__links a:hover,
.laya-auth-footer__links a:focus-visible {
    color: var(--laya-accent, #e52229);
}

.laya-auth-header__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.laya-auth-header__action .laya-btn {
    min-height: 38px;
    padding: 9px 15px;
    font-size: .76rem;
}

.laya-auth-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(380px, .92fr) minmax(0, 1.08fr);
    background: #f6f7fb;
    overflow: hidden;
}

.laya-auth-shell--register {
    min-height: 0;
}

.laya-auth-brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(42px, 6vw, 92px) clamp(28px, 6vw, 88px);
    color: #fff;
    background: #31335b;
}

.laya-auth-brand::before,
.laya-auth-brand::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.laya-auth-brand::before {
    right: -170px;
    top: -150px;
    width: 470px;
    height: 470px;
}

.laya-auth-brand::after {
    left: -230px;
    bottom: -280px;
    width: 570px;
    height: 570px;
    border-color: rgba(255, 255, 255, .08);
}

.laya-auth-brand__orb {
    position: absolute;
    z-index: -1;
    display: block;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    pointer-events: none;
}

.laya-auth-brand__orb--top {
    top: -82px;
    right: -36px;
    background: rgba(126, 42, 81, .68);
    box-shadow: 0 0 0 28px rgba(126, 42, 81, .08), 0 0 70px rgba(126, 42, 81, .28);
}

.laya-auth-brand__orb--bottom {
    left: -82px;
    bottom: -106px;
    width: 170px;
    height: 170px;
    background: rgba(229, 34, 41, .13);
    box-shadow: 0 0 0 24px rgba(229, 34, 41, .06);
}

.laya-auth-brand__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.laya-auth-brand__logo {
    display: block;
    width: 132px;
    height: auto;
}

.laya-auth-brand__wordmark {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.laya-auth-brand__tag {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, .74);
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .02em;
}

.laya-auth-brand__copy {
    max-width: 560px;
    margin-top: auto;
    padding-top: 96px;
}

.laya-eyebrow--light {
    color: rgba(255, 255, 255, .68);
}

.laya-auth-brand h1 {
    max-width: 570px;
    margin-top: 18px;
    color: #fff;
    font-size: clamp(2.7rem, 4.6vw, 5.2rem);
    font-weight: 740;
    letter-spacing: -.06em;
    line-height: .97;
    text-wrap: balance;
}

.laya-auth-brand__copy > p {
    max-width: 470px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.7;
}

.laya-auth-brand__proof {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.laya-auth-brand__proof li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .82);
    font-size: .84rem;
    font-weight: 560;
}

.laya-auth-brand__proof-icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: #fff;
    font-size: .62rem;
}

.laya-auth-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 72px) clamp(18px, 5vw, 80px);
    overflow-y: auto;
}

.laya-auth-card {
    width: min(100%, 492px);
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    border: 1px solid #e2e5ed;
    border-radius: 22px;
    padding: clamp(27px, 4vw, 43px);
    background: #fff;
    box-shadow: 0 22px 56px rgba(25, 27, 54, .1), 0 2px 8px rgba(25, 27, 54, .035);
}

.laya-auth-card--wide {
    width: min(100%, 650px);
}

.laya-auth-card--compact {
    width: min(100%, 500px);
}

.laya-auth-card__header h1,
.laya-auth-card__header h2 {
    margin-top: 9px;
    color: var(--laya-ink, #191a2b);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 740;
    letter-spacing: -.045em;
    line-height: 1.05;
    text-wrap: balance;
}

.laya-auth-card__header p {
    max-width: 520px;
    margin-top: 13px;
    color: var(--laya-muted, #676b7d);
    font-size: .9rem;
    line-height: 1.65;
}

.laya-auth-form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.laya-auth-field-group {
    min-width: 0;
}

.laya-auth-field-group > label,
.laya-auth-form .label-title {
    display: block;
    margin-bottom: 8px;
    color: #2d3045;
    font-size: .78rem;
    font-weight: 720;
}

.laya-auth-field-wrap {
    position: relative;
}

.laya-auth-field-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #85899c;
    font-size: .85rem;
    pointer-events: none;
}

.laya-auth-field,
.laya-auth-form .form--control,
.laya-auth-form .laya-field {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d7dbe5;
    border-radius: 11px;
    background: #fff;
    color: var(--laya-ink, #191a2b);
    padding: 12px 14px;
    font-size: .9rem;
    line-height: 1.2;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.laya-auth-field-wrap > .laya-auth-field,
.laya-auth-field-wrap > .form--control {
    padding-left: 43px;
}

.laya-auth-field-wrap:has([data-auth-password-toggle]) > .laya-auth-field,
.laya-auth-field-wrap:has([data-auth-password-toggle]) > .form--control {
    padding-right: 48px;
}

.laya-auth-field::placeholder,
.laya-auth-form .form--control::placeholder {
    color: #a0a5b5;
}

.laya-auth-field:hover,
.laya-auth-form .form--control:hover {
    border-color: #b7bdce;
}

.laya-auth-field:focus,
.laya-auth-form .form--control:focus {
    border-color: var(--laya-primary, #31335b);
    box-shadow: 0 0 0 4px rgba(49, 51, 91, .1);
}

.laya-auth-field[aria-invalid="true"],
.laya-auth-form .form--control[aria-invalid="true"] {
    border-color: #be4052;
    box-shadow: 0 0 0 4px rgba(190, 64, 82, .1);
}

.laya-auth-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #72788d;
    cursor: pointer;
}

.laya-auth-password-toggle:hover,
.laya-auth-password-toggle:focus-visible {
    background: #f0f1f6;
    color: var(--laya-primary, #31335b);
}

.laya-auth-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -1px;
}

.laya-auth-form__meta a,
.laya-auth-card__footer a,
.laya-auth-step-back {
    color: var(--laya-primary, #31335b);
    font-size: .78rem;
    font-weight: 680;
}

.laya-auth-form__meta a:hover,
.laya-auth-card__footer a:hover,
.laya-auth-step-back:hover {
    color: var(--laya-accent, #e52229);
    text-decoration: underline;
}

.laya-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--laya-muted, #676b7d);
    font-size: .78rem;
    line-height: 1.4;
}

.laya-auth-check input,
.laya-auth-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--laya-primary, #31335b);
}

.laya-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: var(--laya-primary, #31335b);
    color: #fff;
    font-size: .88rem;
    font-weight: 740;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(49, 51, 91, .18);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.laya-auth-submit:hover,
.laya-auth-submit:focus-visible {
    background: var(--laya-primary-strong, #242646);
    box-shadow: 0 13px 26px rgba(49, 51, 91, .22);
}

.laya-auth-submit:active {
    transform: scale(.985);
}

.laya-auth-submit:disabled {
    cursor: wait;
    opacity: .68;
}

.laya-auth-card__footer {
    margin-top: 24px;
    padding-top: 19px;
    border-top: 1px solid #eceef3;
    color: var(--laya-muted, #676b7d);
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

.laya-auth-server-errors,
.laya-auth-card > .alert,
.laya-auth-form .alert {
    margin-top: 19px;
    border: 1px solid #f0c4cc;
    border-left: 4px solid #be4052;
    border-radius: 10px;
    background: #fff2f4;
    color: #8e2d3f;
    padding: 11px 13px;
    font-size: .79rem;
    line-height: 1.5;
}

.laya-auth-server-errors:empty,
.error-message:empty {
    display: none;
}

.laya-auth-error-summary {
    color: inherit;
}

.laya-auth-card > .alert ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.laya-auth-card > .alert .close {
    float: right;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.laya-auth-field-error {
    display: block;
    margin-top: 6px;
    color: #a92f42;
    font-size: .73rem;
    line-height: 1.45;
}

.laya-auth-card__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 21px;
    border: 1px solid #d9e2f3;
    border-radius: 11px;
    background: #f4f7fd;
    color: #4e5d7d;
    padding: 12px 13px;
    font-size: .79rem;
    line-height: 1.5;
}

.laya-auth-card__notice i {
    margin-top: 2px;
    color: #566da6;
}

.laya-auth-step-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.laya-auth-register-step.user_info_area {
    width: 100%;
}

.laya-auth-register-step.user_info_area .laya-auth-form {
    margin-top: 24px;
}

.laya-auth-register-step.user_info_area .input-flex-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.laya-auth-register-step.user_info_area .single-input {
    min-width: 0;
}

.laya-auth-register-step.user_info_area .input-flex-item .single-input,
.laya-auth-register-step.user_info_area > .single-input {
    margin-top: 0 !important;
}

.laya-auth-register-step.user_info_area .single-input + .single-input {
    margin-top: 0;
}

.laya-auth-register-step.user_info_area .intl-tel-input,
.laya-auth-register-step.user_info_area .iti {
    width: 100%;
}

.laya-auth-register-step.user_info_area .iti input {
    padding-left: 88px;
}

.laya-auth-register-step.user_info_area .iti__selected-country {
    border-radius: 10px 0 0 10px;
}

.laya-auth-register-step.user_info_area #user_name_availability,
.laya-auth-register-step.user_info_area #email_availability,
.laya-auth-register-step.user_info_area #phone_availability,
.laya-auth-register-step.user_info_area #check_password_match {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: .72rem;
    line-height: 1.45;
}

.laya-auth-register-step.user_info_area #user_name_availability span[style*="green"],
.laya-auth-register-step.user_info_area #email_availability span[style*="green"],
.laya-auth-register-step.user_info_area #phone_availability span[style*="green"],
.laya-auth-register-step.user_info_area #check_password_match[style*="green"] {
    color: #18794e !important;
}

.laya-auth-register-step.user_info_area #user_name_availability span[style*="red"],
.laya-auth-register-step.user_info_area #email_availability span[style*="red"],
.laya-auth-register-step.user_info_area #phone_availability span[style*="red"],
.laya-auth-register-step.user_info_area #check_password_match[style*="red"] {
    color: #a92f42 !important;
}

.laya-auth-register-step .laya-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--laya-muted, #676b7d);
    font-size: .75rem;
    line-height: 1.55;
}

.laya-auth-register-step .laya-auth-terms a {
    color: var(--laya-primary, #31335b);
    font-weight: 700;
    text-decoration: underline;
}

.laya-auth-register-step .g-recaptcha {
    margin-top: 2px;
    overflow: hidden;
}

.laya-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 25px;
}

.laya-role-card,
.laya-auth-register-step .choose-account-single {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 156px;
    border: 1px solid #e1e4ed;
    border-radius: 15px;
    background: #fff;
    padding: 19px;
    color: var(--laya-ink, #191a2b);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.laya-role-card:hover,
.laya-role-card:focus-visible,
.laya-role-card.is-selected,
.laya-auth-register-step .choose-account-single:hover,
.laya-auth-register-step .choose-account-single:focus-visible,
.laya-auth-register-step .choose-account-single.selected {
    border-color: var(--laya-primary, #31335b);
    background: #fafaff;
    box-shadow: 0 0 0 4px rgba(49, 51, 91, .08);
    transform: translateY(-2px);
}

.laya-auth-register-step .choose-account-single:focus-visible {
    outline: 3px solid rgba(49, 51, 91, .2);
    outline-offset: 2px;
}

.laya-role-card__icon,
.laya-auth-register-step .choose-account-single-thumb {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff0f7;
    color: var(--laya-primary, #31335b);
    font-size: 1.1rem;
}

.laya-auth-register-step .choose-account-single-thumb i {
    font-size: 1.1rem;
}

.laya-role-card__title,
.laya-auth-register-step .choose-account-single-contents-title {
    margin-top: 19px;
    color: var(--laya-ink, #191a2b);
    font-size: .91rem;
    font-weight: 740;
}

.laya-role-card__copy {
    margin-top: 6px;
    color: var(--laya-muted, #676b7d);
    font-size: .75rem;
    line-height: 1.5;
}

.laya-auth-register-step .choose-account-single-contents {
    margin-top: 14px !important;
}

.laya-auth-register-step .choose-account-single-thumb svg {
    display: none;
}

.laya-auth-register-step .continue_to_info {
    width: 100%;
    margin-top: 19px;
    min-height: 50px;
    border: 0;
    border-radius: 11px;
    background: var(--laya-primary, #31335b);
    color: #fff;
    font-weight: 740;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(49, 51, 91, .17);
}

.laya-auth-register-step .login-bottom-contents {
    margin-top: 26px;
    border-top: 1px solid #eceef3;
    padding-top: 21px;
}

.laya-auth-register-step .or-contents {
    color: #9297a7;
    font-size: .72rem;
    text-align: center;
}

.laya-auth-register-step .login-others {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.laya-auth-register-step .login-others-single-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #dfe2ea;
    border-radius: 10px;
    color: #4b5064;
    font-size: .75rem;
    font-weight: 680;
    transition: border-color .18s ease, background-color .18s ease;
}

.laya-auth-register-step .login-others-single-btn:hover,
.laya-auth-register-step .login-others-single-btn:focus-visible {
    border-color: #b9bfd0;
    background: #f8f9fc;
}

.laya-auth-register-step .login-others-single-btn i {
    font-size: .9rem;
}

.laya-auth-register-step .account {
    display: block;
    margin-top: 19px;
    color: var(--laya-muted, #676b7d);
    font-size: .78rem;
    text-align: center;
}

.laya-auth-register-step .account a {
    color: var(--laya-primary, #31335b);
    font-weight: 700;
}

.laya-auth-footer {
    border-top: 1px solid #e2e5ed;
    background: #fff;
}

.laya-auth-footer__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.laya-auth-footer__logo img {
    width: 90px;
    height: auto;
}

.laya-auth-footer__copyright {
    margin-inline: auto;
    color: #8a8fa0;
    font-size: .69rem;
    text-align: center;
}

.laya-auth-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Homepage auth modals share the direct-page auth language without changing their JS contracts. */
#loginModal,
#registerModal,
#socialRoleModal {
    background: rgba(17, 19, 45, .78) !important;
    backdrop-filter: blur(16px);
}

#loginModal > div,
#registerModal > div,
#socialRoleModal > div {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 24px !important;
    background: #f8f9fd !important;
    box-shadow: 0 30px 90px rgba(12, 15, 38, .35), 0 2px 10px rgba(12, 15, 38, .14) !important;
}

#loginModal > div {
    width: min(100%, 520px) !important;
    max-height: calc(100svh - 28px);
}

#registerModal > div,
#socialRoleModal > div {
    width: min(100%, 780px) !important;
    max-height: calc(100svh - 28px);
    overflow: hidden;
}

#loginModal > div::before,
#registerModal > div::before,
#socialRoleModal > div::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--laya-accent, #e52229);
}

#loginModal .laya-login-content {
    position: relative;
    padding: 31px 32px 28px !important;
}

#loginModal .laya-login-content > .max-w-md {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
}

#loginModal .laya-login-logo-link {
    margin-bottom: 22px;
}

#loginModal .laya-login-logo {
    width: 112px;
    height: auto;
}

.laya-modal-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--laya-accent, #e52229);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.laya-modal-eyebrow--center {
    text-align: center;
}

#loginModal .laya-login-title,
#registerModal h1,
#socialRoleModal h1 {
    color: var(--laya-ink, #191a2b) !important;
    font-weight: 740 !important;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-wrap: balance;
}

#loginModal .laya-login-title {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 4vw, 2.35rem) !important;
}

#loginModal .laya-login-intro {
    margin-bottom: 22px;
    color: var(--laya-muted, #676b7d) !important;
    font-size: .85rem;
    line-height: 1.55;
}

#loginModal .laya-login-intro a,
#loginModal a.text-primary,
#registerModal a.text-primary,
#socialRoleModal a.text-primary {
    color: var(--laya-primary, #31335b) !important;
    font-weight: 720;
}

#loginModal label,
#registerModal label {
    color: #2d3045 !important;
    font-size: .76rem;
    font-weight: 720;
}

#loginModal input:not([type="checkbox"]),
#registerModal input:not([type="checkbox"]),
#registerModal select {
    min-height: 48px;
    border: 1px solid #d7dbe5 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--laya-ink, #191a2b) !important;
    font-size: .86rem;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#loginModal input:not([type="checkbox"]):focus,
#registerModal input:not([type="checkbox"]):focus,
#registerModal select:focus {
    border-color: var(--laya-primary, #31335b) !important;
    box-shadow: 0 0 0 4px rgba(49, 51, 91, .1) !important;
}

#loginModal .laya-login-submit,
#registerModal #registerContinueBtn,
#registerModal #modalRegisterBtn,
#socialRoleModal #confirmSocialRole {
    min-height: 48px;
    border: 0;
    border-radius: 11px !important;
    background: var(--laya-primary, #31335b) !important;
    box-shadow: 0 10px 22px rgba(49, 51, 91, .18);
    font-weight: 740;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

#loginModal .laya-login-submit:hover,
#loginModal .laya-login-submit:focus-visible,
#registerModal #registerContinueBtn:hover,
#registerModal #modalRegisterBtn:hover,
#socialRoleModal #confirmSocialRole:hover {
    background: var(--laya-primary-strong, #242646) !important;
    box-shadow: 0 13px 26px rgba(49, 51, 91, .22);
}

#loginModal .laya-login-submit:active,
#registerModal #registerContinueBtn:active,
#registerModal #modalRegisterBtn:active,
#socialRoleModal #confirmSocialRole:active {
    transform: scale(.96);
}

#loginModal .laya-modal-close,
#registerModal > div > button,
#socialRoleModal > div > button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e3eb;
    border-radius: 12px;
    background: #fff;
    color: #777e92;
    font-size: .9rem;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

#loginModal .laya-modal-close:hover,
#registerModal > div > button:hover,
#socialRoleModal > div > button:hover {
    background: #f0f1f6;
    color: var(--laya-primary, #31335b);
}

#registerStep1,
#registerStep2,
#registerStep3,
#socialRoleModal > div > div {
    max-height: calc(100svh - 28px) !important;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 51, 91, .38) transparent;
}

#registerStep1 {
    min-height: 0 !important;
    background: #f8f9fd;
}

#registerStep1 > div > div,
#registerStep2,
#registerStep3 {
    padding: 31px 34px !important;
}

#registerStep1 h1,
#socialRoleModal h1 {
    margin-bottom: 27px !important;
    font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
}

#registerStep1 .select-register-role,
#socialRoleModal .select-social-role {
    min-height: 145px;
    border: 1px solid #dfe3ec !important;
    border-radius: 16px !important;
    background: #fff !important;
    padding: 22px !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

#registerStep1 .select-register-role:hover,
#registerStep1 .select-register-role[aria-pressed="true"],
#socialRoleModal .select-social-role:hover,
#socialRoleModal .select-social-role[aria-pressed="true"] {
    border-color: var(--laya-primary, #31335b) !important;
    background: #fafaff !important;
    box-shadow: 0 0 0 4px rgba(49, 51, 91, .08) !important;
    transform: translateY(-2px);
}

#registerStep1 .select-register-role img,
#socialRoleModal .select-social-role img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.laya-modal-role-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eff0f7;
    color: var(--laya-primary, #31335b);
    font-size: 1.05rem;
}

#registerStep1 .select-register-role h2,
#socialRoleModal .select-social-role h2 {
    margin-top: 15px !important;
    color: var(--laya-ink, #191a2b) !important;
    font-size: .9rem !important;
    font-weight: 740 !important;
}

#registerStep1 .social-register-btn,
#registerStep2 .social-register-btn,
#loginModal .social-login-btn {
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe3ec !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #4b5064 !important;
    font-size: .76rem;
    font-weight: 700;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

#registerStep1 .social-register-btn:hover,
#registerStep2 .social-register-btn:hover,
#loginModal .social-login-btn:hover {
    border-color: #b8bfd0 !important;
    background: #f8f9fc !important;
}

#registerStep2 {
    background: #f8f9fd;
}

#registerStep2 form {
    display: grid;
    gap: 14px;
}

#registerStep2 h1 {
    margin-bottom: 20px !important;
    font-size: 2rem !important;
}

#registerStep2 .text-sm,
#registerStep2 span[id$="availability"],
#registerStep2 #register_check_password_match {
    font-size: .72rem;
}

@media (min-width: 768px) {
    #registerStep2 #modalRegisterForm {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 10px;
    }

    #registerStep2 #modalRegisterForm .laya-modal-name-grid,
    #registerStep2 #modalRegisterForm .laya-modal-password-grid,
    #registerStep2 #modalRegisterForm .laya-modal-terms,
    #registerStep2 #modalRegisterForm .laya-modal-captcha,
    #registerStep2 #modalRegisterForm .laya-modal-register-submit {
        grid-column: 1 / -1;
    }

    #registerStep2 #modalRegisterForm .laya-modal-field-phone {
        grid-column: 1 / -1;
    }

    #registerStep2 #modalRegisterForm input:not([type="checkbox"]),
    #registerStep2 #modalRegisterForm select {
        min-height: 42px;
    }

    #registerStep2 #modalRegisterForm label {
        margin-bottom: 5px;
    }
}

#registerStep3 {
    background: #f8f9fd;
}

#registerStep3 > div > div {
    border: 1px solid #e1e4ed !important;
    border-radius: 16px !important;
    background: #fff;
    padding: 24px !important;
}

@media (max-width: 767px) {
    #loginModal,
    #registerModal,
    #socialRoleModal {
        padding: 12px;
    }

    #loginModal > div,
    #registerModal > div,
    #socialRoleModal > div {
        max-height: calc(100svh - 24px);
        border-radius: 20px !important;
    }

    #loginModal .laya-login-content,
    #registerStep1 > div > div,
    #registerStep2,
    #registerStep3 {
        padding: 24px 20px !important;
    }

    #registerStep1 .select-register-role,
    #socialRoleModal .select-social-role {
        min-height: 116px;
        padding: 16px !important;
    }

    #registerStep1 h1,
    #socialRoleModal h1 {
        margin-bottom: 19px !important;
    }
}

@media (max-width: 1050px) {
    .laya-auth-shell {
        grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
    }

    .laya-auth-brand {
        padding-inline: 46px;
    }

    .laya-auth-brand h1 {
        font-size: clamp(2.4rem, 4.8vw, 4.1rem);
    }

    .laya-auth-panel {
        padding-inline: 28px;
    }
}

@media (min-width: 768px) and (max-height: 680px) {
    .laya-auth-brand {
        padding: 28px 46px;
    }

    .laya-auth-brand__copy {
        padding-top: 30px;
    }

    .laya-auth-brand h1 {
        max-width: 460px;
        margin-top: 12px;
        font-size: clamp(2.25rem, 4vw, 3.65rem);
    }

    .laya-auth-brand__copy > p {
        max-width: 430px;
        margin-top: 13px;
        font-size: .86rem;
        line-height: 1.5;
    }

    .laya-auth-brand__proof {
        display: none;
    }

    .laya-auth-panel {
        padding: 16px 26px;
    }

    .laya-auth-card {
        padding: 22px 26px;
    }

    .laya-auth-card__header h1,
    .laya-auth-card__header h2 {
        font-size: 1.85rem;
    }

    .laya-auth-card__header p {
        margin-top: 8px;
        font-size: .78rem;
    }

    .laya-auth-form {
        gap: 10px;
        margin-top: 17px;
    }

    .laya-auth-field-group > label,
    .laya-auth-form .label-title {
        margin-bottom: 5px;
        font-size: .72rem;
    }

    .laya-auth-field,
    .laya-auth-form .form--control,
    .laya-auth-form .laya-field {
        min-height: 42px;
        padding-block: 9px;
        font-size: .82rem;
    }

    .laya-auth-submit {
        min-height: 43px;
    }

    .laya-auth-card__footer {
        margin-top: 13px;
        padding-top: 12px;
    }
}

@media (max-width: 767px) {
    .laya-auth-header__inner {
        min-height: 64px;
        padding-inline: 16px;
    }

    .laya-auth-header__logo img {
        width: 104px;
    }

    .laya-auth-header__nav,
    .laya-auth-header__hint {
        display: none;
    }

    .laya-auth-header__action .laya-btn {
        min-height: 36px;
        padding: 8px 12px;
        font-size: .72rem;
    }

    .laya-auth-main {
        height: 100svh;
        max-height: 100svh;
        min-height: 0;
    }

    .laya-auth-shell,
    .laya-auth-shell--register {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(190px, 30svh) minmax(0, 1fr);
        height: 100%;
        min-height: 0;
    }

    .laya-auth-brand {
        min-height: 0;
        padding: 22px 20px 24px;
    }

    .laya-auth-brand__copy {
        padding-top: 28px;
    }

    .laya-auth-brand h1 {
        max-width: 520px;
        margin-top: 12px;
        font-size: clamp(2.25rem, 11vw, 3.3rem);
    }

    .laya-auth-brand__copy > p {
        margin-top: 14px;
        font-size: .88rem;
        line-height: 1.55;
    }

    .laya-auth-brand__proof {
        display: none;
    }

    .laya-auth-brand__logo {
        width: 112px;
    }

    .laya-auth-panel {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 0;
        padding: 24px 12px 42px;
        overflow-y: auto;
    }

    .laya-auth-card,
    .laya-auth-card--wide,
    .laya-auth-card--compact {
        width: 100%;
        max-height: none;
        overflow: visible;
        border-radius: 18px;
        padding: 24px 18px;
    }

    .laya-auth-card__header h1,
    .laya-auth-card__header h2 {
        font-size: 1.85rem;
    }

    .laya-role-grid,
    .laya-auth-register-step .choose-account-flex {
        grid-template-columns: 1fr;
    }

    .laya-auth-shell--register .laya-auth-panel {
        align-items: flex-start;
        padding: 12px;
    }

    .laya-auth-shell--register .user_type_area {
        padding: 18px 16px;
    }

    .laya-auth-shell--register .user_type_area .laya-auth-card__header h1 {
        margin-top: 6px;
        font-size: 1.65rem;
    }

    .laya-auth-shell--register .user_type_area .laya-auth-card__header p {
        margin-top: 8px;
        font-size: .76rem;
        line-height: 1.45;
    }

    .laya-auth-shell--register .user_type_area .laya-role-grid {
        gap: 10px;
        margin-top: 14px;
    }

    .laya-auth-shell--register .user_type_area .laya-role-card {
        min-height: 0;
        padding: 12px;
        border-radius: 13px;
    }

    .laya-auth-shell--register .user_type_area .laya-role-card__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: .92rem;
    }

    .laya-auth-shell--register .user_type_area .laya-role-card__title {
        margin-top: 10px;
        font-size: .82rem;
    }

    .laya-auth-shell--register .user_type_area .laya-role-card__copy {
        margin-top: 4px;
        font-size: .68rem;
        line-height: 1.35;
    }

    .laya-auth-shell--register .user_type_area .continue_to_info {
        min-height: 44px;
        margin-top: 12px;
    }

    .laya-auth-shell--register .user_type_area .laya-auth-card__footer {
        margin-top: 12px;
        padding-top: 10px;
        font-size: .7rem;
    }

    .laya-auth-register-step.user_info_area .input-flex-item,
    .laya-auth-register-step .login-others {
        grid-template-columns: 1fr;
    }

    .laya-auth-footer__inner {
        min-height: 112px;
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 20px;
    }

    .laya-auth-footer__copyright {
        order: 3;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .laya-auth-header__logo img {
        width: 96px;
    }

    .laya-auth-header__action .laya-btn {
        padding-inline: 10px;
    }

    .laya-auth-brand {
        min-height: 0;
    }

    .laya-auth-brand h1 {
        font-size: 2.1rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .laya-auth-header__nav a,
    .laya-auth-field,
    .laya-auth-form .form--control,
    .laya-auth-password-toggle,
    .laya-auth-submit,
    .laya-role-card,
    .laya-auth-register-step .choose-account-single {
        transition-duration: .01ms !important;
    }
}
