* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body, html {
    width: 100%; /* 修复宽度问题 */
    min-height: 100vh; /* 确保高度覆盖全屏 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f0f8f0, #e6f7e6);
}

/* 背景科技元素 */
.background-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

/* 全屏网格背景 */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        linear-gradient(90deg, rgba(77, 184, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(77, 184, 255, 0.08) 1px, transparent 1px);
        background-size: 40px 40px;
        z-index: -2;
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.dot {
    position: absolute;
    background: rgba(70, 180, 170, 0.6); /* 蓝绿色调，与背景渐变协调 */
    border-radius: 50%;
    animation: float 15s infinite linear;
}

/* 科技图标容器 */
.tech-icon-container {
    position: absolute;
    opacity: 0.85;
    font-size: 2.5rem;
    animation: pulse 4s infinite alternate;
    z-index: 1;
    filter: drop-shadow(0 0 5px currentColor);
}

.signal-tower {
    bottom: 5%;
    left: 10%;
    animation: tower-pulse 3s ease-in-out infinite;
}

.signal-tower i {
    color: #5D8BF4;
    animation: signal-pulse 1.5s infinite alternate;
}

.network-node {
    top: 25%;
    left: 20%;
    animation: node-rotate 15s linear infinite;
}

.network-node i {
    color: #00B4D8;
    animation: node-pulse 3s infinite alternate;
}

.satellite-dish {
    bottom: 15%;
    right: 20%;
    animation: dish-scan 8s linear infinite;
}

.satellite-dish i {
    color: #9C51E0;
    animation: dish-pulse 4s infinite alternate;
}

.microchip {
    top: 10%;
    left: 5%;
    font-size: 2.2rem;
    color: #06C167;
    animation: chip-flicker 3s infinite alternate;
}

.wifi {
    top: 70%;
    right: 15%;
    font-size: 2.8rem;
    color: #FF6B35;
    animation: wifi-pulse 3.5s infinite alternate;
}

.server {
    bottom: 20%;
    left: 15%;
    font-size: 2.5rem;
    color: #1A73E8;
    animation: server-vibrate 2.5s infinite alternate;
}

.signal {
    top: 40%;
    right: 5%;
    font-size: 3rem;
    color: #F44336;
    animation: signal-wave 3s infinite alternate;
}

.satellite {
    top: 20%;
    right: 10%;
    font-size: 2.8rem;
    color: #673AB7;
    animation: satellite-orbit 25s linear infinite;
}

/* 登录容器 */
.login-container {
    position: relative;
    width: 380px;
    background: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 80, 50, 0.1);
    padding: 40px 35px;
    z-index: 10;
    transition: all 0.4s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 100, 60, 0.15);
}

.welcome-text {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
     color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.welcome-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    border-radius: 2px;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid rgba(231, 76, 60, 0.2);
    font-size: 14px;
    display: none;
}

/* 表单样式 */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: #f9fbf9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.input-group input::placeholder {
    color: #95a5a6;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s ease;
    font-size: 18px;
}

.toggle-password:hover {
    color: #4CAF50;
}

/* 验证码输入框样式 */
.captcha-input-container {
    display: flex;
    position: relative;
}

#captcha-input {
    flex: 1;
    padding-right: 110px; /* 为验证码图片留出空间 */
}

.captcha-image-container {
    position: absolute;
    right: 5px; /* 与右边框留出距离 */
    top: 5px; /* 与上边框留出距离 */
    height: calc(100% - 10px); /* 高度减去上下边距 */
    width: 100px; /* 固定宽度 */
    border-radius: 8px; /* 圆角比输入框小一点 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f5f9f5;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.captcha-image-container:hover {
    background: #e8f5e9;
    transform: scale(1.02);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.captcha-image-container i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #4CAF50;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.captcha-image-container:hover i {
    opacity: 1;
}

.captcha-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.captcha-image-container:hover::after {
    opacity: 1;
}

#captcha-image {
    max-width: 100%; /* 确保图片不超出容器 */
    max-height: 100%;
    object-fit: contain; /* 保持比例并适应容器 */
}

button {
    width: 100%;
    padding: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

button:hover {
    background: #43A047;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.35);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: #2c3e50;
    font-size: 14px;
}

.remember-me input {
    margin-right: 10px;
    accent-color: #4CAF50;
    width: 18px;
    height: 18px;
}

.tech-footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 13px;
}

/* 动画效果 */
@keyframes tower-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes signal-pulse {
    0% { text-shadow: 0 0 5px currentColor; }
    100% { text-shadow: 0 0 20px currentColor, 0 0 30px currentColor; }
}

@keyframes node-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes node-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes dish-scan {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

@keyframes dish-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes chip-flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 10px #4db8ff; }
}

@keyframes wifi-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes server-vibrate {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(3px); }
}

@keyframes signal-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

@keyframes satellite-orbit {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-5px, -5px); }
    50% { transform: translate(5px, 3px); }
    75% { transform: translate(-3px, 5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 响应式设计 */
@media (max-width: 480px) {
body, html {
    min-width: auto;
    min-height: auto;
}

.login-container {
    width: 90%;
    padding: 30px 25px;
}

.welcome-text {
    font-size: 24px;
}

.captcha-image-container {
    width: 85px;
    right: 3px;
    top: 3px;
    height: calc(100% - 6px);
}

#captcha-input {
    padding-right: 95px;
}
}

.beian-link {
    text-decoration: none; /* 去除下划线 */
    color: inherit; /* 继承父元素颜色，与周围文本一致 */
    font-weight: normal; /* 正常字体粗细 */
    transition: all 0.2s ease; /* 平滑过渡效果 */
}