.login-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.70);
    padding: 24px 16px;
    box-sizing: border-box;
}

.login-dialog-mask.is-open {
    display: flex;
}

.login-dialog-card {
    width: 300px;
    max-width: 100%;
    padding: 28px 24px 24px;
    position: relative;
    background: rgba(23, 23, 23, 0.98);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    display: flex;
    box-sizing: border-box;
}

.login-dialog-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.login-dialog-close img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.login-dialog-head {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.login-dialog-title {
    align-self: stretch;
    text-align: center;
    color: white;
    font-size: 24px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 700;
    line-height: 30px;
}

.login-dialog-title-pc {
    display: none;
}

.login-dialog-desc {
    align-self: stretch;
    text-align: center;
    color: rgba(255, 255, 255, 0.60);
    font-size: 12px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 400;
    line-height: 18px;
}

.login-dialog-form {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-dialog-field-group {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.login-dialog-label {
    display: none;
    color: #666666;
    font-size: 14px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
}

.login-dialog-field {
    align-self: stretch;
    height: 50px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.login-dialog-field.is-error {
    border-color: #FF4A5C;
}

.login-dialog-field--password {
    justify-content: space-between;
    gap: 8px;
}

.login-dialog-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-dialog-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    outline-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    color: white;
    font-size: 14px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 400;
    line-height: 20px;
    padding: 0;
}

.login-dialog-input:focus,
.login-dialog-input:focus-visible {
    border: none;
    outline: none;
    outline-color: transparent;
    box-shadow: none;
}

.login-dialog-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.login-dialog-error {
    margin: 0;
    color: #FF6B6B;
    font-size: 12px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 400;
    line-height: 18px;
}

.login-dialog-error[hidden] {
    display: none;
}

.login-dialog-eye {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-dialog-eye img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.55;
    filter: brightness(0) invert(1);
}

.login-dialog-submit {
    align-self: stretch;
    height: 50px;
    border: none;
    background: #FADC44;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #171717;
    font-size: 16px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 700;
    line-height: 22px;
}

.login-dialog-submit.is-loading,
.login-dialog-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.login-dialog-submit.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(23, 23, 23, 0.35);
    border-top-color: #171717;
    border-radius: 50%;
    animation: login-dialog-submit-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes login-dialog-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-dialog-register {
    align-self: stretch;
    height: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.login-dialog-register-prefix {
    display: none;
    color: #A3A3A3;
    font-size: 14px;
    font-family: PingFang SC, sans-serif;
    font-weight: 400;
    line-height: 20px;
}

.login-dialog-register-link {
    color: #FADC44;
    font-size: 12px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 700;
    line-height: 18px;
    text-decoration: none;
}

.login-dialog-register-link--pc {
    display: none;
}

.login-dialog-legal {
    align-self: stretch;
    text-align: center;
    color: rgba(255, 255, 255, 0.40);
    font-size: 12px;
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    font-weight: 400;
    line-height: 18px;
}

.login-dialog-legal a {
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
}

@media (min-width: 768px) {
    .login-dialog-card {
        width: 456px;
        padding: 28px 32px;
        background: #0A0A0A;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .login-dialog-head {
        align-items: flex-start;
        gap: 4px;
    }

    .login-dialog-title {
        text-align: left;
        font-size: 28px;
        font-family: PingFang SC, sans-serif;
        font-weight: 400;
        line-height: 34px;
    }

    .login-dialog-title-h5 {
        display: none;
    }

    .login-dialog-title-pc {
        display: inline;
    }

    .login-dialog-desc {
        text-align: left;
        color: #A3A3A3;
        font-size: 14px;
        font-family: PingFang SC, sans-serif;
        line-height: 20px;
    }

    .login-dialog-field-group {
        gap: 8px;
    }

    .login-dialog-label {
        display: block;
    }

    .login-dialog-field {
        height: 48px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .login-dialog-input {
        font-family: PingFang SC, sans-serif;
    }

    .login-dialog-input::placeholder {
        color: #A3A3A3;
    }

    .login-dialog-eye img {
        opacity: 1;
        filter: none;
    }

    .login-dialog-submit {
        height: 48px;
        border-radius: 12px;
        color: #181818;
        font-size: 14px;
        font-family: PingFang SC, sans-serif;
        font-weight: 400;
        line-height: 20px;
    }

    .login-dialog-submit.is-loading::before {
        border-color: rgba(24, 24, 24, 0.35);
        border-top-color: #181818;
    }

    .login-dialog-register {
        width: 100%;
        height: 24px;
        justify-content: center;
    }

    .login-dialog-register-prefix {
        display: inline;
    }

    .login-dialog-register-link--h5 {
        display: none;
    }

    .login-dialog-register-link--pc {
        display: inline;
        font-size: 14px;
        font-family: PingFang SC, sans-serif;
        font-weight: 400;
        line-height: 20px;
    }

    .login-dialog-legal {
        display: none;
    }
}
