/* 登录页样式 */
.login-page {
    height: 100vh;
    background: linear-gradient(45deg, #0a1428, #164e4d);
    position: relative;
    overflow: hidden;
}

/* 粒子背景 */
#login-particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
}

/* 标语容器 */
.login-slogan-container {
    position: absolute;
    top: 25%;
    left: 8%;
    z-index: 2;
    width: 100%;
}

/* 第一组标语 */
.login-slogan-group-1 {
    text-align: left;
    margin-bottom: 3rem;
}

/* 第二组标语 */
.login-slogan-group-2 {
    text-align: left;
    margin-left: 15%;
}

.login-slogan-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    letter-spacing: 2px;
    animation: login-glow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

.login-slogan-text-en {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0.2rem 0 0;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@keyframes login-glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                     0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 15px rgba(0, 115, 230, 0.5),
                     0 0 20px rgba(0, 115, 230, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.6),
                     0 0 20px rgba(255, 255, 255, 0.6),
                     0 0 30px rgba(0, 115, 230, 0.6),
                     0 0 40px rgba(0, 115, 230, 0.4);
    }
}

.login-slogan-group-1:hover .login-slogan-text,
.login-slogan-group-2:hover .login-slogan-text {
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 1);
}

.login-slogan-group-1:hover .login-slogan-text-en,
.login-slogan-group-2:hover .login-slogan-text-en {
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 0.9);
}

.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 {
    margin-top: 12px;
}

#toast-container > div {
    padding: 10px 10px 10px 40px;
    width: auto;
    max-width: none;
    border-radius: 0;
    background-position: 15px center;
    box-shadow: none;
    opacity: 1;
    color: #fff;
}

.toast-top-center {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.toast-error {
    background-color: #dc3545 !important;
}

.toast-success {
    background-color: #28a745 !important;
}

.toast-info {
    background-color: #17a2b8 !important;
}

.toast-warning {
    background-color: #ffc107 !important;
}

#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-error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-success {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-info {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E") !important;
}

/* 动画持续时间 */
.animate__animated {
    --animate-duration: 0.8s;
}

/* 验证码按钮样式 */
.verify-code-btn {
    background-color: #fff;
    border: 1px solid #007bff;
    color: #007bff;
    font-size: 14px;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
    min-width: 100px;
}

.verify-code-btn:hover:not(.disabled) {
    background-color: #007bff;
    color: #fff;
}

.verify-code-btn.disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

/* 协议文字样式 */
.terms-text {
    font-size: 13px;
    color: #6c757d;
}

.terms-text a {
    color: #007bff;
    text-decoration: none;
}

.terms-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 技术支持样式 */
.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%;
    }
    
    .login-slogan-container {
        display: none;
    }
}