@font-face {
    font-family: "Alibaba PuHuiTi 3.0";
    src: url("Alibaba-PuHuiTi-Regular.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 100%;
    color: inherit;
    line-height: inherit;
}

input:focus {
    outline: none;
}

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modal-overlay {

    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 50px 30px;
    position: relative;
}

.dialog-close{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.modal-header .icon-container {
    width: 88px;
    height: 88px;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .icon-container img {
    width: 48px;
    height: 48px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0em;

    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #000000;
    margin-top: 24px;
    margin-bottom: 40px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-body .input-group {
    width: 400px;
    border-radius: 8px;

    /* background: #F7F9FE; */

    box-sizing: border-box;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 10px;
}

.modal-body .input-group img {
    width: 20px;
    margin-right: 10px;
}

.modal-body .input-group input {
    flex: 1;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    text-align: left;
    letter-spacing: 0.02em;

    font-variation-settings: "opsz" auto;
}

.modal-body .input-group:focus-within {
    border-color: rgba(70, 61, 247, .6);
    box-shadow: 0 0 4px 4px rgba(70, 61, 247, .08);
    background: #FFFFFF;
}


.get-code-btn {
    margin-left: 10px;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    text-align: right;
    letter-spacing: 0.02em;

    font-variation-settings: "opsz" auto;
    /* colorLinkActive */
    color: #0958D9;
}


.login-btn {
    margin-top: 30px;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: center;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    color: #FFFFFF;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
}

.modal-footer {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: center;
    font-variation-settings: "opsz" auto;
    font-feature-settings: "kern" on;
    /* 登录即代表同意 */
    color: rgba(0, 12, 23, 0.6);
    margin-top: 20px;
}

.modal-footer a {
    color: #0958D9;
    text-decoration: none;
    margin-left: 0 4px;
    white-space: nowrap;
    border-bottom: 0;
}

/* 按钮禁用状态 */
.get-code-btn.disabled,
.get-code-btn[disabled],
.get-code-btn:disabled {
    color: rgba(0, 12, 23, 0.35);
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
    transition: color .2s ease, opacity .2s ease;
}

.login-btn.disabled,
.login-btn[disabled],
.login-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    filter: grayscale(10%);
    transition: opacity .2s ease, filter .2s ease;
}