/* 登录页样式 */
.login-page {
    height: 100vh;
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    position: relative;
    overflow: hidden;
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.login-box {
    width: 360px;
    position: relative;
    z-index: 2;
}

.login-box .card {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-card-body {
    border-radius: 15px;
    padding: 30px;
}

.brand-image {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.login-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-logo h1 {
    color: white;
    font-size: 1.8rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

.btn-primary {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group-text {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    background: transparent;
    color: #666;
    padding: 0;
}

.form-control {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px !important;
    padding: 10px 20px 10px 45px;
    height: 45px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 41, 128, 0.25);
    background: rgba(255, 255, 255, 1);
}

/* Toastr样式覆盖 */
.toast-center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

#toast-container > .toast {
    background-image: none !important;
    padding: 15px 15px 15px 50px;
    width: 300px;
    border-radius: 15px;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#toast-container > .toast:before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Font Awesome 5 Free';
    font-size: 24px;
    line-height: 18px;
    font-weight: 900;
    color: #fff;
}

#toast-container > .toast-success {
    background-color: #28a745 !important;
}

#toast-container > .toast-error {
    background-color: #dc3545 !important;
}

#toast-container > .toast-info {
    background-color: #17a2b8 !important;
}

#toast-container > .toast-warning {
    background-color: #ffc107 !important;
}

#toast-container > .toast-success:before {
    content: '\f058';
}

#toast-container > .toast-error:before {
    content: '\f057';
}

#toast-container > .toast-info:before {
    content: '\f05a';
}

#toast-container > .toast-warning:before {
    content: '\f071';
}

/* 添加淡入淡出动画 */
.toast-enter {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.toast-enter-active {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.tech-support {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
}

.tech-support a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tech-support a:hover {
    opacity: 1;
}

@media(max-width: 576px) {
    .login-box {
        width: 90%;
    }
}

/* 动画持续时间 */
.animate__animated {
    --animate-duration: 0.8s;
}