* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 50%, #000051 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 背景动画线条 */
.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: moveLine 8s linear infinite;
}

.line-1 {
    top: 10%;
    left: -100%;
    width: 200%;
    height: 2px;
    animation-delay: 0s;
}

.line-2 {
    top: 25%;
    left: -100%;
    width: 150%;
    height: 1px;
    animation-delay: 1s;
}

.line-3 {
    top: 40%;
    left: -100%;
    width: 180%;
    height: 2px;
    animation-delay: 2s;
}

.line-4 {
    top: 55%;
    left: -100%;
    width: 160%;
    height: 1px;
    animation-delay: 3s;
}

.line-5 {
    top: 70%;
    left: -100%;
    width: 190%;
    height: 2px;
    animation-delay: 4s;
}

.line-6 {
    top: 85%;
    left: -100%;
    width: 170%;
    height: 1px;
    animation-delay: 5s;
}

.line-7 {
    top: 15%;
    left: -100%;
    width: 140%;
    height: 1px;
    animation-delay: 6s;
}

.line-8 {
    top: 60%;
    left: -100%;
    width: 200%;
    height: 2px;
    animation-delay: 7s;
}

@keyframes moveLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00e5ff;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
}

/* 登录表单容器 */
.login-form-container {
    position: relative;
    z-index: 10;
    background: rgba(0, 20, 60, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid #00e5ff;
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    box-shadow: 
        0 0 30px rgba(0, 229, 255, 0.3),
        inset 0 0 30px rgba(0, 229, 255, 0.1);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 
            0 0 30px rgba(0, 229, 255, 0.3),
            inset 0 0 30px rgba(0, 229, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 40px rgba(0, 229, 255, 0.5),
            inset 0 0 40px rgba(0, 229, 255, 0.2);
    }
}

/* 标题样式 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.system-title {
    color: #00e5ff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.system-subtitle {
    color: #64b5f6;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

/* 输入框样式 */
.input-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    background: rgba(0, 30, 80, 0.6);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.3s ease;
    height: 55px; /* 固定高度确保对齐 */
    box-sizing: border-box;
    width: 100%; /* 确保宽度一致 */
}

.input-wrapper:focus-within {
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.input-icon {
    color: #64b5f6;
    font-size: 18px;
    margin-right: 12px;
    width: 20px; /* 固定宽度确保图标对齐 */
    text-align: center;
    flex-shrink: 0; /* 防止图标被压缩 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    padding: 0;
    line-height: 1.5;
    height: 100%;
    display: flex;
    align-items: center;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.password-toggle {
    color: #64b5f6;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #00e5ff;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #00e5ff 0%, #0091ea 100%);
    border: none;
    border-radius: 12px;
    padding: 15px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    height: 55px; /* 与输入框相同高度 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

/* 注册链接 */
.register-link {
    text-align: center;
}

.register-link a {
    color: #64b5f6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #00e5ff;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

/* 错误提示 */
.alert-danger {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-form-container {
        width: 90%;
        padding: 30px 20px;
    }
    
    .system-title {
        font-size: 24px;
    }
    
    .form-input {
        font-size: 14px;
    }
}