/* =========================================================
   登录 / 新用户注册弹窗
========================================================= */

.login-modal {
    position: fixed;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .42);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        visibility .25s ease;

    z-index: 5000;
}


/* =========================================================
   弹窗显示
========================================================= */

.login-modal.show {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   弹窗主体
========================================================= */

.login-modal-content {
    position: relative;

    width: 420px;
    max-width: 100%;

    padding: 34px 36px 32px;

    background: #fff;

    border-radius: 2px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, .18);

    transform: translateY(15px);

    transition:
        transform .25s ease;
}


.login-modal.show .login-modal-content {
    transform: translateY(0);
}


/* =========================================================
   关闭按钮
========================================================= */

.login-modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: #999;

    font-size: 25px;

    font-weight: 300;

    line-height: 30px;

    text-align: center;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}


.login-modal-close:hover {
    color: #333;

    background: #f5f5f5;
}


/* =========================================================
   标题
========================================================= */

.login-modal-title {
    margin: 0 0 8px;

    color: #222;

    font-size: 24px;

    font-weight: 600;

    line-height: 34px;

    text-align: center;
}


.login-modal-subtitle {
    margin: 0 0 28px;

    color: #999;

    font-size: 12px;

    line-height: 20px;

    text-align: center;
}


/* =========================================================
   表单
========================================================= */

.login-form {
    width: 100%;
}


.login-form-item {
    margin-bottom: 18px;
}


.login-form-item label {
    display: block;

    margin: 0 0 8px;

    color: #333;

    font-size: 13px;

    line-height: 20px;
}


.login-form-item label::after {
    content: " *";

    color: #0076c8;
}


.login-form-item input {
    width: 100%;
    height: 42px;

    padding: 0 13px;

    border: 1px solid #dfe3e7;

    border-radius: 2px;

    outline: none;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color .2s ease;
}


.login-form-item input:focus {
    border-color: #0076c8;

    box-shadow:
        0 0 0 2px rgba(0, 118, 200, .08);
}


/* =========================================================
   提交按钮
========================================================= */

.login-submit {
    width: 100%;
    height: 42px;

    margin-top: 5px;

    border: 0;

    border-radius: 2px;

    background: #0076c8;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        background .2s ease;
}


.login-submit:hover {
    background: #0064a9;
}


.login-submit:disabled {
    background: #9bbfd8;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   提示信息
========================================================= */

.login-message {
    min-height: 20px;

    margin-top: 12px;

    padding: 0;

    color: #e35d5d;

    font-size: 12px;

    line-height: 22px;

    text-align: center;

    word-break: break-word;

    transition:
        color .2s ease;
}


/* =========================================================
   成功提示
========================================================= */

.login-message.success {
    color: #2d9b63;
}


/* =========================================================
   成功状态
   提交成功后：
   表单区域隐藏
   只保留提示文字
========================================================= */

.login-modal-content.success-state {
    padding-top: 50px;
    padding-bottom: 50px;

    text-align: center;
}


/* 成功状态下隐藏关闭按钮 */

.login-modal-content.success-state .login-modal-close {
    display: none;
}


/* 成功状态下隐藏标题 */

.login-modal-content.success-state .login-modal-title {
    display: none;
}


/* 成功状态下隐藏副标题 */

.login-modal-content.success-state .login-modal-subtitle {
    display: none;
}


/* 成功状态下隐藏表单 */

.login-modal-content.success-state .login-form {
    display: none;
}


/* 成功状态下提示文字 */

.login-modal-content.success-state .login-message {
    display: block;

    margin: 0;

    min-height: 0;

    color: #2d9b63;

    font-size: 15px;

    line-height: 28px;

    text-align: center;
}


/* =========================================================
   手机
========================================================= */

@media (max-width: 480px) {

    .login-modal {
        padding: 15px;
    }


    .login-modal-content {
        width: 100%;

        padding: 30px 24px 26px;
    }


    .login-modal-title {
        font-size: 21px;
    }


    .login-form-item input {
        height: 40px;
    }


    .login-submit {
        height: 40px;
    }


    /* =====================================================
       成功状态
    ===================================================== */

    .login-modal-content.success-state {
        padding-top: 42px;
        padding-bottom: 42px;
    }


    .login-modal-content.success-state .login-message {
        padding: 0 10px;

        font-size: 14px;

        line-height: 24px;
    }


    /* =====================================================
       普通提示
    ===================================================== */

    .login-message {
        min-height: 20px;

        margin-top: 12px;

        padding: 0 10px;

        font-size: 12px;

        line-height: 20px;

        text-align: center;

        word-break: break-word;
    }


    .login-message.success {
        color: #2d9b63;
    }

    /* =========================================================
       提交成功状态
    ========================================================= */

    .login-success-state {
        min-height: 120px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 40px 36px;
    }


    /* =========================================================
       提交成功文字
    ========================================================= */

    .login-success-message {
        display: none;

        width: 100%;

        color: #2d9b63;

        font-size: 16px;

        line-height: 28px;

        text-align: center;

        font-weight: 400;
    }


    /* =========================================================
       手机
    ========================================================= */

    @media (max-width: 480px) {

        .login-success-state {
            min-height: 100px;

            padding: 30px 20px;
        }


        .login-success-message {
            font-size: 14px;

            line-height: 24px;
        }

    }

/* =========================================================
   提交成功提示美化
========================================================= */

.login-success-message {
    padding: 40px 20px;
    text-align: center;
    /* 居中布局 */
}

.login-success-message .success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #19b394;
    color: #ffffff;
    font-size: 34px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(25, 179, 148, 0.2);
}

.login-success-message .success-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.login-success-message .success-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
}



}