/*!
 * 项目名称: 星瀚元图书馆集群管理系统
 * Copyright (c) 2026 广州星瀚元计算机科技有限公司. All rights reserved.
 * 
 * 本源代码为商业专有软件，未经授权禁止复制、分发、反编译。
 * 公司官网:http://www.xinghy.cn
 * 授权咨询电话:18922497946
 * 授权咨询邮箱:wuxing2722@qq.com
 * @version 1.0
 * @date 2026-09-21
 */
body {
    overflow: hidden;
}

.login-container {
    margin-top: 12rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 1s ease;
    overflow: hidden;
}

.login-container:hover {
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.3);
    transform: translateY(-5px);
}

.library-image {
    background: linear-gradient(45deg, #F3F9FE, #E5F3FC);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.library-image .img {
    height: 100%;
}

.library-image .img img {
    width: 100%;
    height: 100%;
}

.library-cartoon {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #1976d2);
    border-radius: 2px;
}

.form-control {
    border: 1px solid #59ADF8;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.input-group-text {
    background: #FFFFFF;
    border: 1px solid #59ADF8;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.form-control.with-icon {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 36px;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border: 2px solid #59ADF8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.captcha-image:hover {
    background: linear-gradient(45deg, #bbdefb, #90caf9);
    transform: scale(1.05);
}


.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2196f3;
}

.register-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
    transition: color0 .3s ease;
}

.register-link:hover {
    color: #1976d2;
}

.form-check-input:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-section {
        padding: 2rem;
    }

    .login-container {
        margin: 1rem;
    }

    .library-image {
        display: none;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loginForm {
    padding: 0 4rem;
}

#loginForm .input-group-prepend .bi {
    font-size: 1rem;
    color: #333333;
}

#login_msg {
    max-height: 10rem;
    overflow: hidden;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}