.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: 311px;
    max-width: 100%;
    padding: 24px 18px;
    position: relative;
    background: #0E0C17;
    overflow: hidden;
    border-radius: 24px;
    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;
}

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

.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-desc {
    align-self: stretch;
    text-align: center;
    color: #A8A1B8;
    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-field {
    align-self: stretch;
    height: 50px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.login-dialog-field.is-error {
    outline: 1px #FF4A5C solid;
    outline-offset: -1px;
}

.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;
    outline: 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::placeholder {
    color: #7A738A;
}

.login-dialog-error {
    margin: 0;
    color: #FF5C6E;
    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.75;
}

.login-dialog-submit {
    align-self: stretch;
    height: 50px;
    border: none;
    background: #F12B9E;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    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(255, 255, 255, 0.35);
    border-top-color: #fff;
    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;
}

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

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

.login-dialog-legal a {
    color: #7A738A;
    text-decoration: none;
}

@media (min-width: 768px) {
    .login-dialog-mask {
        display: none !important;
    }
}
