* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

.logo:hover {
    color: #3498db;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.auth-buttons button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.auth-buttons button:last-child {
    background-color: #e74c3c;
}

.auth-buttons button:last-child:hover {
    background-color: #c0392b;
}

/* 登录区域样式 */
.login-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background-color: #fff;
}

.login-image {
    flex: 1;
    position: relative;
    overflow: hidden; /* 确保视频不溢出容器 */
}

/* 视频背景 */
.login-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保视频覆盖整个区域 */
}

.login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(41, 128, 185, 0.9));
    z-index: 1; /* 确保渐变层在视频上方 */
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 滑动验证码样式 */
.slider-container {
    margin-bottom: 20px;
    position: relative;
    background-color: #f5f5f5;
    height: 40px;
    line-height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    user-select: none;
    transition: all 0.3s ease;
}        

.slider-container.error {
    border-color: #e74c3c;
}

.slider-container.error-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

.slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 4px;
    width: 0;
}

.slider-text {
    position: absolute;
    text-align: center;
    width: 100%;
    color: #666;
    font-size: 14px;
    z-index: 1;
}

.slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 38px;
    background-color: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.slider-button::before {
    content: '→';
    color: #3498db;
}

.slider-button.active {
    background-color: #38a169;
}

.slider-button.active::before {
    content: '✓';
    color: #fff;
}

.login-button {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .auth-buttons button {
        margin: 0;
        width: 48%;
    }

    .login-container {
        flex-direction: column;
    }

    .login-image {
        height: 200px;
    }

    .login-form-container {
        padding: 20px;
    }
}

/* 错误提示组件样式 */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    padding: 16px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.error-message.show {
    transform: translateX(0);
}

.error-message .icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fed7d7;
    color: #c53030;
    border-radius: 50%;
}

.error-message .content {
    flex-grow: 1;
    margin-right: 12px;
}

.error-message .title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.error-message .description {
    color: #718096;
    font-size: 14px;
    line-height: 1.4;
}

.error-message .close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.error-message .close:hover {
    color: #718096;
}
