body {
    background: #f7f8fa;
    color: #222;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}
.login-main {
    width: 100vw;
    min-height: 100vh;
    background: #fff;
    padding: 10vh 0 8vh 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-title {
    color: #222;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 32px 0;
    text-align: center;
}
.login-form {
    width: 96vw;
    max-width: 420px;
    margin: 0 auto 32px auto;
    padding: 0;
}
.input-group {
    margin-bottom: 28px;
}
.input-group label {
    display: block;
    color: #222;
    margin-bottom: 7px;
    font-size: 1rem;
}
.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"] {
    width: 100%;
    padding: 13px 32px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background: #f7f8fa;
    color: #222;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border .2s;
}
.input-group input:focus {
    border: 1.5px solid #1677ff;
    background: #fff;
}
.login-btn {
    width: 100%;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 24px;
    transition: background .2s;
}
.login-btn:hover {
    background: #0056d6;
}
.login-links {
    text-align: center;
    margin-bottom: 24px;
    color: #888;
    font-size: 1rem;
}
.login-links a {
    color: #1677ff;
    text-decoration: none;
    font-weight: 500;
    margin: 0 4px;
}
.login-links a:hover {
    text-decoration: underline;
}
.divider {
    color: #d1d5db;
    margin: 0 6px;
}
.modal-mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.12);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px #0002;
    padding: 18px 8vw 14px 8vw;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.08rem;
    color: #222;
}
.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-msg {
    flex: 1;
}
/* 验证码输入区（电脑版+手机版） */
.input-group.email-code-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}
.email-code-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
#email_code {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background: #f7f8fa;
    color: #222;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border .2s;
}
#email_code:focus {
    border: 1.5px solid #1677ff;
    background: #fff;
}
#send-email-code {
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
    display: inline-block;
    font-weight: 500;
}
#send-email-code:disabled {
    background: #b3c6f7;
    cursor: not-allowed;
}
#send-email-code:hover:not(:disabled) {
    background: #0056d6;
}
/* 复选框区（电脑版+手机版） */
.input-group.agree-group {
    margin-bottom: 18px;
}
.agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    user-select: none;
}
#agree {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    accent-color: #1677ff;
}
.agree-label a {
    color: #1677ff;
    text-decoration: none;
}
.agree-label a:hover {
    text-decoration: underline;
}
#referral[readonly] {
    background: rgba(200,200,200,0.18) !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    border: 1.5px solid #e5e6eb;
    box-shadow: 0 0 0 2px rgba(180,180,180,0.10);
    opacity: 1;
}
@media (max-width: 600px) {
    .login-main {
        padding: 8vw 0 8vw 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .login-title {
        font-size: 1.1rem;
        margin-bottom: 24px;
        text-align: center;
    }
    .login-form {
        width: 86vw;
        max-width: 86vw;
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .input-group {
        margin-bottom: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .input-group label {
        width: 100%;
        text-align: left;
    }
    .input-group input[type="text"],
    .input-group input[type="password"],
    .input-group input[type="email"] {
        padding: 13px 32px;
        border: 1px solid #e5e6eb;
        border-radius: 8px;
        background: #f7f8fa;
        color: #222;
        font-size: 1rem;
        outline: none;
        box-sizing: border-box;
        transition: border .2s;
        margin: 0 auto;
        text-align: left;
    }
    .login-btn {
        font-size: 1rem;
        padding: 12px 0;
        margin-bottom: 18px;
    }
    .login-links {
        font-size: 0.95rem;
        margin-bottom: 18px;
        text-align: center;
    }
    .modal-popup {
        padding: 12px 8vw 10px 8vw;
        font-size: 1rem;
    }
    .input-group.email-code-group {
        margin-bottom: 20px;
    }
    .email-code-row {
        gap: 6px;
    }
    #email_code {
        height: 40px;
        padding: 0 14px;
        font-size: 0.98rem;
    }
    #send-email-code {
        height: 40px;
        padding: 0 14px;
        font-size: 0.98rem;
        border-radius: 8px;
    }
    .input-group.agree-group {
        margin-bottom: 14px;
    }
    .agree-label {
        font-size: 0.95rem;
        gap: 6px;
    }
    #agree {
        width: 16px;
        height: 16px;
    }
}
