:root{
    --primary-color: #1465ff;
    --secondary-color: #5cb85c;
    --light-bg: #f5f5f5;
    --dark-bg: #2e2e2e;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #ddd;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body{
    background-color: var(--light-bg);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../../img/htdlbj.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

body::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.login-container{
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
    margin: 20px;
}

@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header{
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 25px;
    text-align: center;
    position: relative;
}

.login-header h1{
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.login-header p{
    font-size: 14px;
    opacity: 0.9;
}

.login-header-icon{
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-body{
    padding: 25px;
}

.form-group{
    margin-bottom: 20px;
    position: relative;
}

.form-group label{
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.input-with-icon{
    position: relative;
}

.input-with-icon i{
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.form-control{
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus{
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 175, 0.2);
    outline: none;
}

.form-control.error{
    border-color: var(--error-color);
}

.form-control.success{
    border-color: var(--success-color);
}

.error-message{
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.remember-forgot{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me{
    display: flex;
    align-items: center;
}

.remember-me input{
    margin-right: 5px;
}

.forgot-password{
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover{
    color: var(--dark-bg);
    text-decoration: underline;
}

.login-btn{
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover{
    background-color: #3a5a9f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-btn i{
    margin-right: 8px;
}

.login-footer{
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: #777;
}

.login-footer a{
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover{
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px){
    .login-container{
        margin: 10px;
        max-width: 100%;
    }
    
    .login-header{
        padding: 20px 15px;
    }
    
    .login-header h1{
        font-size: 20px;
    }
    
    .login-body{
        padding: 20px 15px;
    }
    
    .login-header-icon{
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
}

/* 加载动画 */
.spinner{
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin{
    to{ transform: rotate(360deg); }
}

/* 社交登录 */
.social-login{
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.social-login::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: -1;
}

.social-login span{
    background-color: white;
    padding: 0 10px;
    color: #777;
    font-size: 13px;
}

.social-icons{
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-icon{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-icon:hover{
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.facebook{
    background-color: #3b5998;
}

.google{
    background-color: #db4437;
}

.twitter{
    background-color: #1da1f2;
}