* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ============ 科技感登录页面 ============ */

.tech-login {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 30%, #061a2e 70%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景层 */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* 网格背景 */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 200, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 发光效果 */
.tech-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 180, 255, 0.15) 0%, rgba(0, 180, 255, 0.05) 40%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 流动光线 */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-lines span {
    position: absolute;
    display: block;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6), transparent);
    height: 2px;
    animation: lineMove 6s linear infinite;
}

.tech-lines span:nth-child(1) {
    top: 10%;
    left: -100%;
    width: 300px;
    animation-delay: 0s;
}
.tech-lines span:nth-child(2) {
    top: 25%;
    left: -100%;
    width: 200px;
    animation-delay: 1.2s;
}
.tech-lines span:nth-child(3) {
    top: 40%;
    left: -100%;
    width: 400px;
    animation-delay: 0.8s;
}
.tech-lines span:nth-child(4) {
    top: 55%;
    left: -100%;
    width: 250px;
    animation-delay: 2s;
}
.tech-lines span:nth-child(5) {
    top: 70%;
    left: -100%;
    width: 350px;
    animation-delay: 1.6s;
}
.tech-lines span:nth-child(6) {
    top: 85%;
    left: -100%;
    width: 180px;
    animation-delay: 3s;
}
.tech-lines span:nth-child(7) {
    top: 15%;
    left: -100%;
    width: 220px;
    animation-delay: 4s;
}
.tech-lines span:nth-child(8) {
    top: 35%;
    left: -100%;
    width: 280px;
    animation-delay: 2.5s;
}
.tech-lines span:nth-child(9) {
    top: 62%;
    left: -100%;
    width: 320px;
    animation-delay: 3.5s;
}
.tech-lines span:nth-child(10) {
    top: 78%;
    left: -100%;
    width: 260px;
    animation-delay: 4.5s;
}

@keyframes lineMove {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 脉冲圆环 */
.tech-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-circles .circle {
    position: absolute;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 50%;
    animation: circlePulse 6s ease-out infinite;
}

.tech-circles .c1 {
    top: 20%;
    left: 15%;
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}
.tech-circles .c2 {
    top: 60%;
    right: 10%;
    width: 300px;
    height: 300px;
    animation-delay: 2s;
}
.tech-circles .c3 {
    bottom: 15%;
    left: 20%;
    width: 250px;
    height: 250px;
    animation-delay: 4s;
}

@keyframes circlePulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
        border-color: rgba(0, 200, 255, 0.4);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: rgba(0, 200, 255, 0);
    }
}

/* ============ 登录内容区 ============ */

.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.login-panel {
    width: 480px;
    padding: 50px 50px 40px;
    background: rgba(10, 30, 60, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    box-shadow:
        0 0 60px rgba(0, 180, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: panelIn 0.8s ease-out;
}

@keyframes panelIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 面板顶部标题 */
.panel-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 20px 0;
}

.panel-header .header-line {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 25%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6));
}

.panel-header .header-line.left {
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.6));
}

.panel-header .header-line.right {
    right: 0;
    background: linear-gradient(90deg, rgba(0, 200, 255, 0.6), transparent);
}

.panel-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
    font-family: "Microsoft YaHei", sans-serif;
}

.panel-subtitle {
    font-size: 12px;
    color: rgba(0, 200, 255, 0.7);
    letter-spacing: 8px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}

/* ============ 表单样式 ============ */

.form-wrap {
    padding: 0;
}

.form-wrap .input-wrap {
    width: 100%;
    height: 52px;
    background: rgba(0, 20, 40, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-wrap .input-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.form-wrap .input-wrap:focus-within {
    border-color: rgba(0, 200, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3), inset 0 0 10px rgba(0, 200, 255, 0.1);
}

.form-wrap .input-wrap:focus-within::before {
    left: 100%;
}

.form-wrap .input-wrap .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    color: rgba(0, 200, 255, 0.8);
}

.form-wrap .input-wrap .iconfont {
    font-size: 20px;
    color: rgba(0, 200, 255, 0.8);
}

.form-wrap .input-wrap .input {
    flex: 1;
    width: 0;
    line-height: 50px;
    height: 50px;
    padding: 0 15px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.form-wrap .input-wrap .input::placeholder {
    color: rgba(200, 220, 255, 0.5);
}

.form-wrap .input-wrap .captcha {
    cursor: pointer;
    padding: 5px 10px;
    align-self: center;
    height: 42px;
    border-radius: 3px;
    background: rgba(0, 100, 150, 0.3);
}

/* ============ 登录按钮 ============ */

.login-btn {
    line-height: 52px;
    height: 52px;
    color: #fff;
    border-radius: 4px;
    width: 100%;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #00a8ff 0%, #0080cc 50%, #0066aa 100%);
    border: 1px solid rgba(0, 200, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 168, 255, 0.4);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #00c0ff 0%, #0099dd 50%, #0077cc 100%);
    box-shadow: 0 6px 30px rgba(0, 168, 255, 0.6);
    transform: translateY(-2px);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 168, 255, 0.4);
}

/* ============ 面板底部 ============ */

.panel-footer {
    margin-top: 35px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.panel-footer .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.panel-footer .footer-text {
    font-size: 11px;
    color: rgba(0, 200, 255, 0.6);
    letter-spacing: 3px;
    font-family: Arial, sans-serif;
}

/* ============ 四角装饰 ============ */

.tech-deco {
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 5;
    border-color: rgba(0, 200, 255, 0.6);
}

.deco-tl {
    top: 30px;
    left: 30px;
    border-top: 2px solid rgba(0, 200, 255, 0.6);
    border-left: 2px solid rgba(0, 200, 255, 0.6);
}

.deco-tr {
    top: 30px;
    right: 30px;
    border-top: 2px solid rgba(0, 200, 255, 0.6);
    border-right: 2px solid rgba(0, 200, 255, 0.6);
}

.deco-bl {
    bottom: 30px;
    left: 30px;
    border-bottom: 2px solid rgba(0, 200, 255, 0.6);
    border-left: 2px solid rgba(0, 200, 255, 0.6);
}

.deco-br {
    bottom: 30px;
    right: 30px;
    border-bottom: 2px solid rgba(0, 200, 255, 0.6);
    border-right: 2px solid rgba(0, 200, 255, 0.6);
}

/* ============ 响应式适配 ============ */

@media (max-width: 1200px) {
    .login-panel {
        width: 440px;
        padding: 40px 40px 30px;
    }
}

@media (max-width: 768px) {
    .tech-deco {
        width: 40px;
        height: 40px;
    }
    .deco-tl, .deco-tr { top: 15px; }
    .deco-tl, .deco-bl { left: 15px; }
    .deco-tr, .deco-br { right: 15px; }
    .deco-bl, .deco-br { bottom: 15px; }

    .login-panel {
        width: 90%;
        max-width: 400px;
        padding: 35px 30px 25px;
    }

    .panel-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .panel-subtitle {
        font-size: 10px;
        letter-spacing: 5px;
    }
}
