:root {
    --theme: linear-gradient(135deg, #050226 0%, #067dad 100%);
    --theme-light: #3589ff;
    --radius: 12px;
    --shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/bg.png") center/cover no-repeat;
}
.login-card {
    width: 420px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 45px;
    position: relative;
}
.login-card .logo-box {
    text-align: center;
    margin-bottom: 20px;
}

.login-card h2 {
    text-align: center;
    font-size: 32px;
    color: #050226;
    margin-bottom: 30px;
    letter-spacing: 1px;
}
.form-group {
    margin-bottom: 22px;
    position: relative;
}
.form-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    display: block;
}
.form-group input {
    width: 100%;
    height: 46px;
    border: 1px solid #dcdfe6;
    border-radius: var(--radius);
    padding: 0 40px 0 15px;
    font-size: 15px;
    transition: .25s;
}
.form-group input:focus {
    border-color: var(--theme-light);
    outline: none;
}
.form-group .toggle-pwd {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #909399;
    font-size: 18px;
}
.error-tip {
    color: #f31b1b;
    font-size: 14px;
    height: 0;
    margin-top: 4px;
}
.btn-primary {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius);
    background: var(--theme);
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .25s;
    margin-top: 10px;
}
.btn-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
}
.extra-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
}
.extra-box a {
    color: var(--theme-light);
    text-decoration: none;
}
.extra-box a:hover {
    text-decoration: underline;
}
.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #999;
}
/* 响应式 */
@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 40px 25px;
    }
}
.logo-box{
    position: absolute;
    top:24px;
    left: 30px;
}