﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Roboto", Consolas, sans-serif;
    background: #0a192f; /* 深蓝色背景 */
    overflow: hidden; /* 隐藏滚动条 */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    /* 背景图 - 使用CSS渐变和图案创建科技感蓝色背景 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(15, 30, 60, 0.9) 100%), radial-gradient(circle at 20% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 100, 255, 0.1) 0%, transparent 50%), repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 100, 255, 0.03) 2px, rgba(0, 100, 255, 0.03) 4px);
        z-index: 1;
    }

/* 添加动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(0, 150, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(0, 150, 255, 0.5);
}

/* ========== 并排登录容器 ========== */
.split-login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    display: flex;
    background: rgba(15, 30, 60, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.2);
}

/* ========== 左侧标语区 ========== */
.split-left {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 40, 80, 0.9) 0%, rgba(10, 25, 47, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

    .split-left::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 80%, rgba(0, 150, 255, 0.1) 0%, transparent 70%), radial-gradient(circle at 80% 20%, rgba(0, 100, 255, 0.1) 0%, transparent 70%);
        z-index: -1;
    }

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-icon i {
        font-size: 24px;
        color: #ffffff;
    }

.logo-text {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(90deg, #00aaff, #0077ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.slogan-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}

.slogan-subtitle {
    font-size: 18px;
    color: #a0c8ff;
    line-height: 1.6;
    max-width: 90%;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 150, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

    .feature-icon i {
        color: #00aaff;
        font-size: 18px;
    }

.feature-text {
    color: #b8d4ff;
    font-size: 16px;
}

/* ========== 右侧登录区 ========== */
.split-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 25, 47, 0.7);
    position: relative;
}

    .split-right::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 80% 80%, rgba(0, 100, 255, 0.05) 0%, transparent 70%), radial-gradient(circle at 20% 40%, rgba(0, 150, 255, 0.05) 0%, transparent 70%);
        z-index: -1;
    }

.login-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

.login-subtitle {
    font-size: 16px;
    color: #a0c8ff;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-label {
    display: block;
    color: #00aaff;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}

.input-container {
    position: relative;
}

.input-icon {
    width:20px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00aaff;
    font-size: 18px;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(15, 30, 60, 0.7);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: #00aaff;
        box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    }

.password-toggle {
    width:20px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0c8ff;
    cursor: pointer;
    font-size: 18px;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    color: #a0c8ff;
}

    .remember input {
        margin-right: 8px;
        accent-color: #00aaff;
    }

.forgot-password {
    color: #00aaff;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .forgot-password:hover {
        color: #0077ff;
        text-shadow: 0 0 8px rgba(0, 150, 255, 0.5);
    }

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #0077ff, #00aaff);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.3);
    margin-top:15px;
}
.login-btn-default {
    background: linear-gradient(90deg, #e1dbdb, #a4acad);
}
    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 150, 255, 0.5);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #a0c8ff;
    font-size: 14px;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(0, 150, 255, 0.3);
    }

    .divider span {
        padding: 0 15px;
    }

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 30, 60, 0.7);
    border: 1px solid rgba(0, 150, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aaff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        background: rgba(0, 150, 255, 0.1);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 150, 255, 0.2);
    }

.register-link {
    text-align: center;
    color: #a0c8ff;
    font-size: 15px;
}

    .register-link a {
        color: #00aaff;
        text-decoration: none;
        font-weight: 600;
        margin-left: 5px;
    }

        .register-link a:hover {
            color: #0077ff;
            text-shadow: 0 0 8px rgba(0, 150, 255, 0.3);
        }

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .split-login-container {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto; /* 在小屏幕上允许垂直滚动 */
    }

    .split-left, .split-right {
        padding: 40px 30px;
    }

    .slogan-title {
        font-size: 36px;
    }

    .login-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .slogan-title {
        font-size: 28px;
    }

    .login-title {
        font-size: 24px;
    }

    .split-left, .split-right {
        padding: 30px 20px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 隐藏滚动条 */
.split-login-container::-webkit-scrollbar {
    display: none;
}

.split-login-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.loginfooter {
    position: absolute;
    z-index: 999;
    bottom: 10px;
    color: #b8d4ff !important;
    width: 100%;
    text-align: center;
}
/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    display: none;
    background: linear-gradient(90deg, #0077ff, #00aaff);
    border-left: 4px solid #00ff88;
}

    .message.error {
        background: linear-gradient(90deg, #ff3366, #ff5588);
        border-left: 4px solid #00ff88;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
