/* ============================================
   科技风登录页 - 明亮科技版
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2352;
    overflow: hidden;
}

/* ============================================
   背景场景 - 更明亮
   ============================================ */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, #1e2d6f 0%, #223580 25%, #2a3f8f 50%, #1e347a 75%, #1a2a6b 100%);
}

/* 透视网格地面 - 更亮 */
.grid-floor {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(130, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 210, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(25deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(25deg) translateY(50px); }
}

/* 科技装饰线条 */
.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(100, 180, 255, 0.4) 20%, rgba(100, 180, 255, 0.6) 50%, rgba(100, 180, 255, 0.4) 80%, transparent 100%);
}

.tech-line-1 {
    top: 30%;
    left: 0;
    right: 0;
    animation: techLineMove1 8s ease-in-out infinite;
}

.tech-line-2 {
    bottom: 25%;
    left: 0;
    right: 0;
    animation: techLineMove2 10s ease-in-out infinite;
    background: linear-gradient(90deg, transparent 0%, rgba(160, 140, 255, 0.3) 20%, rgba(160, 140, 255, 0.5) 50%, rgba(160, 140, 255, 0.3) 80%, transparent 100%);
}

@keyframes techLineMove1 {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-20px); }
}

@keyframes techLineMove2 {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(15px); }
}

/* 浮动粒子 - 更亮更大 */
.particles {
    position: absolute;
    inset: 0;
}

.particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(130, 220, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(130, 220, 255, 0.8), 0 0 24px rgba(130, 220, 255, 0.3);
    animation: particleFloat linear infinite;
}

.particles span:nth-child(1)  { left:  5%; animation-duration: 12s; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 15%; animation-duration: 14s; animation-delay: 1s; }
.particles span:nth-child(3)  { left: 25%; animation-duration: 10s; animation-delay: 2s; }
.particles span:nth-child(4)  { left: 35%; animation-duration: 16s; animation-delay: 0.5s; }
.particles span:nth-child(5)  { left: 45%; animation-duration: 11s; animation-delay: 3s; }
.particles span:nth-child(6)  { left: 55%; animation-duration: 13s; animation-delay: 1.5s; }
.particles span:nth-child(7)  { left: 65%; animation-duration: 15s; animation-delay: 2.5s; }
.particles span:nth-child(8)  { left: 75%; animation-duration: 12s; animation-delay: 0.8s; }
.particles span:nth-child(9)  { left: 85%; animation-duration: 14s; animation-delay: 3.5s; }
.particles span:nth-child(10) { left: 95%; animation-duration: 10s; animation-delay: 1.2s; }
.particles span:nth-child(11) { left: 10%; animation-duration: 16s; animation-delay: 4s; width: 3px; height: 3px; }
.particles span:nth-child(12) { left: 20%; animation-duration: 11s; animation-delay: 0.3s; width: 5px; height: 5px; }
.particles span:nth-child(13) { left: 30%; animation-duration: 13s; animation-delay: 2.8s; }
.particles span:nth-child(14) { left: 40%; animation-duration: 15s; animation-delay: 1.8s; width: 3px; height: 3px; }
.particles span:nth-child(15) { left: 50%; animation-duration: 12s; animation-delay: 3.2s; }
.particles span:nth-child(16) { left: 60%; animation-duration: 14s; animation-delay: 0.6s; width: 5px; height: 5px; }
.particles span:nth-child(17) { left: 70%; animation-duration: 10s; animation-delay: 2.2s; }
.particles span:nth-child(18) { left: 80%; animation-duration: 16s; animation-delay: 1.4s; width: 3px; height: 3px; }
.particles span:nth-child(19) { left: 90%; animation-duration: 11s; animation-delay: 3.8s; }
.particles span:nth-child(20) { left:  3%; animation-duration: 13s; animation-delay: 0.9s; width: 5px; height: 5px; }

/* 紫色粒子变体 - 更亮 */
.particles span:nth-child(even) {
    background: rgba(180, 160, 255, 0.9);
    box-shadow: 0 0 12px rgba(180, 160, 255, 0.8), 0 0 24px rgba(180, 160, 255, 0.3);
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* 光晕 - 更大更亮 3个光源 */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(80, 160, 255, 0.35) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation: glowPulse1 8s ease-in-out infinite;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(160, 130, 255, 0.3) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: glowPulse2 10s ease-in-out infinite;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse3 6s ease-in-out infinite;
}

@keyframes glowPulse1 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50%      { transform: scale(1.2) translate(-30px, 20px); opacity: 1; }
}

@keyframes glowPulse2 {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    50%      { transform: scale(1.3) translate(20px, -30px); opacity: 1; }
}

@keyframes glowPulse3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%      { transform: translate(-50%, -50%) scale(1.4); opacity: 0.9; }
}

/* 扫描线 - 更亮 */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(130, 220, 255, 0.4), transparent);
    animation: scanDown 6s linear infinite;
}

@keyframes scanDown {
    0%   { top: -2px; }
    100% { top: 100%; }
}

/* ============================================
   登录卡片 - 明亮玻璃质感
   ============================================ */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    animation: cardEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes cardEnter {
    0%   { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    position: relative;
    background: rgba(30, 45, 100, 0.75);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(130, 200, 255, 0.25);
    border-radius: 20px;
    padding: 50px 42px 40px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.25),
        0 0 100px rgba(80, 160, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 40px rgba(80, 160, 255, 0.03);
}

/* 顶部渐变装饰线 */
.card-border-top {
    position: absolute;
    top: -1px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, #60a5fa, transparent);
    border-radius: 2px;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
}

/* HUD 角标 - 更亮 */
.hud-corner {
    position: absolute;
    width: 18px;
    height: 18px;
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    background: rgba(96, 165, 250, 0.7);
}

.hud-tl { top: 8px; left: 8px; }
.hud-tl::before { top: 0; left: 0; width: 18px; height: 2px; }
.hud-tl::after  { top: 0; left: 0; width: 2px; height: 18px; }

.hud-tr { top: 8px; right: 8px; }
.hud-tr::before { top: 0; right: 0; width: 18px; height: 2px; }
.hud-tr::after  { top: 0; right: 0; width: 2px; height: 18px; }

.hud-bl { bottom: 8px; left: 8px; }
.hud-bl::before { bottom: 0; left: 0; width: 18px; height: 2px; }
.hud-bl::after  { bottom: 0; left: 0; width: 2px; height: 18px; }

.hud-br { bottom: 8px; right: 8px; }
.hud-br::before { bottom: 0; right: 0; width: 18px; height: 2px; }
.hud-br::after  { bottom: 0; right: 0; width: 2px; height: 18px; }

/* ============================================
   Logo 区域
   ============================================ */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-ring {
    width: 94px;
    height: 94px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, #60a5fa, #a78bfa, #60a5fa);
    animation: ringRotate 4s linear infinite;
    position: relative;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.3), 0 0 60px rgba(96, 165, 250, 0.1);
}

@keyframes ringRotate {
    0%   { background: conic-gradient(from 0deg, #60a5fa, transparent 40%, #a78bfa, transparent 80%, #60a5fa); }
    25%  { background: conic-gradient(from 90deg, #60a5fa, transparent 40%, #a78bfa, transparent 80%, #60a5fa); }
    50%  { background: conic-gradient(from 180deg, #60a5fa, transparent 40%, #a78bfa, transparent 80%, #60a5fa); }
    75%  { background: conic-gradient(from 270deg, #60a5fa, transparent 40%, #a78bfa, transparent 80%, #60a5fa); }
    100% { background: conic-gradient(from 360deg, #60a5fa, transparent 40%, #a78bfa, transparent 80%, #60a5fa); }
}

.logo-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(25, 40, 90, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6)); }
    50%      { filter: drop-shadow(0 0 16px rgba(96, 165, 250, 0.9)); }
}

/* 标题 - 中文样式 */
.login-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 14px;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 标题闪光装饰 */
.login-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
    animation: titleLineGlow 2s ease-in-out infinite;
}

@keyframes titleLineGlow {
    0%, 100% { width: 40px; opacity: 0.5; }
    50% { width: 80px; opacity: 1; }
}

.login-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.login-subtitle .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 10px #60a5fa, 0 0 20px rgba(96, 165, 250, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.4); }
}

/* ============================================
   表单
   ============================================ */
.login-form {
    padding: 0 !important;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(130, 200, 255, 0.85);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.cyber-input {
    width: 100%;
    height: 52px !important;
    padding: 0 18px 0 48px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.cyber-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.cyber-input:focus {
    border-color: rgba(96, 165, 250, 0.6) !important;
    background: rgba(96, 165, 250, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15), 0 0 25px rgba(96, 165, 250, 0.1) !important;
}

.cyber-input:focus ~ .input-icon,
.input-box:focus-within .input-icon {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* 输入框底部光效 */
.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.cyber-input:focus ~ .input-glow {
    width: 85%;
}

/* ============================================
   登录按钮
   ============================================ */
.login-btn {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.15) 100%);
    color: #93c5fd;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3) 0%, rgba(167, 139, 250, 0.25) 100%);
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 50px rgba(96, 165, 250, 0.2), 0 4px 20px rgba(96, 165, 250, 0.15), inset 0 0 30px rgba(96, 165, 250, 0.05);
    transform: translateY(-2px);
    color: #bfdbfe;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 加载状态 */
.login-btn.loading {
    pointer-events: none;
    border-color: rgba(96, 165, 250, 0.5);
}

.login-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 成功状态 */
.login-btn.success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.3) 0%, rgba(16, 185, 129, 0.2) 100%);
    border-color: rgba(52, 211, 153, 0.7);
    color: #6ee7b7;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.15);
}

/* ============================================
   底部
   ============================================ */
.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.8), 0 0 24px rgba(52, 211, 153, 0.3);
    animation: statusBlink 3s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 90%, 100% { opacity: 1; }
    95%           { opacity: 0.3; }
}

.hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 24px 32px;
        border-radius: 16px;
    }

    .login-title {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .cyber-input {
        height: 48px !important;
    }

    .login-btn {
        height: 48px;
    }

    .login-subtitle {
        font-size: 11px;
    }
}

/* ============================================
   LayUI 覆盖
   ============================================ */
.layui-layer-loading .layui-layer-content {
    background-color: transparent !important;
}
