/* ==============================
   基础样式
============================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


body {

    min-height: 100vh;

    font-family:
        "Microsoft YaHei",
        Arial,
        sans-serif;

    display: flex;

    justify-content: center;

    align-items: center;


    background: #ffffff;

}


/* ==============================
   页面容器
============================== */

.login-container {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

}


/* ==============================
   登录卡片
============================== */

.login-box {

    width: 390px;

    background: rgba(
        255,
        255,
        255,
        0.98
    );

    padding: 45px 40px;

    border-radius: 18px;

    box-shadow:

        0 20px 50px
        rgba(
            0,
            50,
            100,
            0.3
        );

    text-align: center;

}


/* ==============================
   Logo
============================== */

.logo {

    width: 70px;

    height: 70px;

    margin:

        0
        auto
        20px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 32px;

    background:

        linear-gradient(
            135deg,
            #42a5f5,
            #1565c0
        );

    border-radius: 50%;

    box-shadow:

        0 8px 20px
        rgba(
            25,
            118,
            210,
            0.35
        );

}


/* ==============================
   标题
============================== */

h1 {

    color: #1565c0;

    font-size: 27px;

    margin-bottom: 10px;

}


.subtitle {

    font-size: 14px;

    color: #8a8a8a;

    margin-bottom: 30px;

}


/* ==============================
   密码输入框
============================== */

.password-box {

    position: relative;

    margin-bottom: 8px;

}


.password-box input {

    width: 100%;

    height: 52px;

    padding:

        0
        70px
        0
        16px;

    border:

        1px
        solid
        #dcdcdc;

    border-radius: 9px;

    outline: none;

    font-size: 15px;

    transition:

        border-color 0.2s,
        box-shadow 0.2s;

}


.password-box input:focus {

    border-color: #1976d2;

    box-shadow:

        0
        0
        0
        3px
        rgba(
            25,
            118,
            210,
            0.12
        );

}


/* ==============================
   显示密码
============================== */

.show-password {

    position: absolute;

    right: 13px;

    top: 50%;

    transform:

        translateY(-50%);

    border: none;

    background: transparent;

    color: #1976d2;

    font-size: 13px;

    cursor: pointer;

}


.show-password:hover {

    color: #0d47a1;

}


/* ==============================
   错误信息
============================== */

.error-message {

    min-height: 28px;

    display: flex;

    align-items: center;

    color: #e53935;

    font-size: 13px;

    text-align: left;

}


/* ==============================
   登录按钮
============================== */

.login-btn {

    width: 100%;

    height: 50px;

    margin-top: 5px;

    border: none;

    border-radius: 9px;

    background:

        linear-gradient(
            135deg,
            #2196f3,
            #1565c0
        );

    color: white;

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;

    transition:

        transform 0.2s,
        box-shadow 0.2s;

}


.login-btn:hover {

    transform:

        translateY(-2px);

    box-shadow:

        0
        8px
        18px
        rgba(
            25,
            118,
            210,
            0.35
        );

}


.login-btn:active {

    transform:

        translateY(0);

}


/* ==============================
   Footer
============================== */

.footer-text {

    margin-top: 25px;

    color: #b0b0b0;

    font-size: 12px;

}


/* ==============================
   手机适配
============================== */

@media (max-width: 480px) {

    .login-box {

        width: 100%;

        padding:

            35px
            25px;

    }

}