/* 科技感登录页面样式 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景动画 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="dot" cx="0" cy="0" r="1" fx="0" fy="0"><stop offset="0%" stop-color="%2300f" stop-opacity="0.3"/><stop offset="100%" stop-color="%2300f" stop-opacity="0"/></radialGradient></defs><g><circle cx="100" cy="100" r="2" fill="url(%23dot)"/><circle cx="300" cy="200" r="1" fill="url(%23dot)"/><circle cx="500" cy="150" r="1.5" fill="url(%23dot)"/><circle cx="700" cy="250" r="1" fill="url(%23dot)"/><circle cx="900" cy="180" r="2" fill="url(%23dot)"/><circle cx="200" cy="400" r="1.5" fill="url(%23dot)"/><circle cx="400" cy="350" r="1" fill="url(%23dot)"/><circle cx="600" cy="450" r="2" fill="url(%23dot)"/><circle cx="800" cy="380" r="1" fill="url(%23dot)"/><circle cx="150" cy="600" r="1.5" fill="url(%23dot)"/><circle cx="350" cy="550" r="2" fill="url(%23dot)"/><circle cx="550" cy="650" r="1" fill="url(%23dot)"/><circle cx="750" cy="580" r="1.5" fill="url(%23dot)"/><circle cx="950" cy="620" r="1" fill="url(%23dot)"/><circle cx="250" cy="800" r="2" fill="url(%23dot)"/><circle cx="450" cy="750" r="1" fill="url(%23dot)"/><circle cx="650" cy="850" r="1.5" fill="url(%23dot)"/><circle cx="850" cy="780" r="1" fill="url(%23dot)"/></g></svg>');
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 10;
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.3),
            inset 0 0 30px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.5),
            inset 0 0 40px rgba(0, 255, 255, 0.2);
    }
}

/* 登录标题 */
.login-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-title h1 {
    font-size: 2.5em;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.login-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* 登录表单 */
.login-form {
    position: relative;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: rgba(10, 10, 30, 0.9);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* 密码输入框 */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #00ffff;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0099ff, #0066cc);
    box-shadow: 0 0 30px rgba(0, 153, 255, 0.8);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 错误信息 */
.error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ff6666;
    font-size: 0.9em;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* 成功信息 */
.success-message {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #66ff66;
    font-size: 0.9em;
    text-align: center;
}

/* 记住我和忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 10px;
    accent-color: #00ffff;
}

.remember-me label {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remember-me label:hover {
    color: #00ffff;
}

.forgot-password {
    color: rgba(0, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* 底部链接 */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.login-footer a {
    color: rgba(0, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 30px;
        max-width: 100%;
    }
    
    .login-title h1 {
        font-size: 2em;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 1em;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .login-title h1 {
        font-size: 1.8em;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}