/* 登录页面样式 */
:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --accent-color: #00a8ff;
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --border-color: rgba(0, 168, 255, 0.3);
    --shadow-color: rgba(2, 12, 27, 0.7);
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #0d1b2a 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 450px;
    background: rgba(17, 34, 64, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.2), 
                inset 0 0 10px rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.3);
    padding: 30px;
    position: relative;
    overflow: hidden;
    animation: loginBoxAppear 0.8s ease-out;
}

@keyframes loginBoxAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录框装饰效果 */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        rgba(0, 168, 255, 0.8) 0%, 
        rgba(0, 168, 255, 0.3) 50%, 
        rgba(0, 168, 255, 0.1) 100%);
}

.login-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.login-header h1 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    letter-spacing: 1px;
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--success-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.login-form {
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.form-group input {
    width: 100%;
    background: rgba(10, 25, 47, 0.5);
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
    outline: none;
    background: rgba(10, 25, 47, 0.7);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.form-group input:focus + .input-line {
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-color: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remember-me:hover .checkmark {
    background-color: rgba(0, 168, 255, 0.1);
}

.remember-me input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--text-color);
}

.login-btn {
    width: 100%;
    background: rgba(0, 168, 255, 0.2);
    color: var(--accent-color);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 168, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.login-btn:hover {
    background: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 168, 255, 0.2);
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 168, 255, 0.1);
}

.system-info {
    display: flex;
    justify-content: space-between;
}

.info-item {
    font-size: 12px;
    color: var(--text-secondary);
}

.info-label {
    margin-right: 5px;
    opacity: 0.7;
}

.info-value {
    color: var(--accent-color);
}

/* 登录错误提示 */
.login-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
} 