:root {
    --tech-blue: #00a8ff;
    --tech-cyan: #00ffff;
    --tech-purple: #9c88ff;
    --tech-dark: #0a0e17;
    --tech-darker: #050811;
    --tech-bg: #0d1117;
    --tech-grid: #1a1f29;
    --tech-glow: 0 0 10px #00a8ff, 0 0 20px #00a8ff, 0 0 30px #00a8ff;
    --tech-gradient: linear-gradient(90deg, #00a8ff, #00ffff, #9c88ff);
    --glass-bg: rgba(0, 168, 255, 0.05);
    --glass-border: rgba(0, 168, 255, 0.2);
    --input-bg: rgba(26, 31, 41, 0.5);
    --input-border: rgba(0, 168, 255, 0.3);
    --input-focus: rgba(0, 255, 255, 0.5);
    --success-color: #00ff9d;
    --error-color: #ff3366;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background-color: var(--tech-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(156, 136, 255, 0.05) 0%, transparent 20%),
        linear-gradient(to bottom, var(--tech-darker), var(--tech-bg));
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--tech-cyan);
}

/* 科技网格背景 */
.tech-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    animation: gridPulse 8s infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

/* 快速流动数字雨效果 */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.digital-column {
    position: absolute;
    top: -100%;
    width: 20px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 255, 255, 1);
    animation: rainFall linear infinite;
    line-height: 1.2;
    opacity: 0;
}

@keyframes rainFall {
    0% { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    5% { 
        opacity: 0.8; 
    }
    95% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(100vh); 
        opacity: 0; 
    }
}

/* 数据流效果 */
.data-stream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.stream-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tech-blue), var(--tech-cyan), transparent);
    animation: streamFlow 3s linear infinite;
    filter: blur(0.5px);
    will-change: transform, opacity;
}

@keyframes streamFlow {
    0% { transform: translateX(-100%); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 浮动元素 */
.floating-tech {
    position: fixed;
    pointer-events: none;
    z-index: 4;
}

.tech-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1), transparent 70%);
    animation: orbFloat 15s ease-in-out infinite;
    filter: blur(10px);
}

.tech-orb:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tech-orb:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    width: 150px;
    height: 150px;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33% { transform: translate(30px, -20px) scale(1.1); opacity: 0.5; }
    66% { transform: translate(-20px, 30px) scale(0.9); opacity: 0.4; }
}

/* 扫描线效果 */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
    box-shadow: 0 0 10px var(--tech-cyan);
    z-index: 5;
    animation: scan 3s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* 登录容器 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
    background: none !important;
}

/* 登录卡片样式 - 科技数字流风格 */
.login-card {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.1),
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 168, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 8;
    transition: all 0.3s ease;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tech-gradient);
    z-index: 1;
    animation: borderFlow 3s linear infinite;
}

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 168, 255, 0.03) 50%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(0, 168, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--input-focus);
}

/* 头部样式 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a1929, #1a3a5f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4), inset 0 0 20px rgba(0, 168, 255, 0.1);
    animation: techPulse 3s infinite alternate;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 168, 255, 0.3);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.3), rgba(0, 255, 255, 0.1));
    border-radius: 50%;
    z-index: -1;
    animation: techPulse 3s infinite alternate-reverse;
    filter: blur(5px);
    opacity: 0.6;
}

.logo-icon i {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.8);
}

@keyframes techPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 168, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 168, 255, 0.6); }
}

.system-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, #a0d2ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.system-subtitle {
    color: #a0d2ff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.3);
}

/* 表单样式 - 科技数字流风格 */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    color: var(--tech-cyan);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.input-group {
    position: relative;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.1);
}

.input-group:hover {
    border-color: var(--input-focus);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
}

.input-group-text {
    background: rgba(26, 31, 41, 0.7);
    border: none;
    color: var(--tech-cyan);
    padding: 12px 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    transition: all 0.3s ease;
}

.input-group-text:first-child {
    border-right: 1px solid var(--input-border);
}

.input-group-text:last-child {
    border-left: 1px solid var(--input-border);
    cursor: pointer;
    background: rgba(26, 31, 41, 0.9);
}

.input-group-text:last-child:hover {
    background: rgba(0, 168, 255, 0.2);
    color: #ffffff;
}

.form-control {
    background: transparent;
    border: none;
    color: var(--tech-cyan);
    padding: 12px 15px;
    flex: 1;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: rgba(0, 168, 255, 0.05);
    color: #ffffff;
}

.form-control::placeholder {
    color: rgba(0, 168, 255, 0.5);
    font-style: italic;
}

/* 确保所有输入框边距一致 */
.form-group .input-group {
    margin: 0;
}

.form-group .form-control {
    margin: 0;
}

.form-check {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background: var(--tech-gradient);
    border-color: var(--input-focus);
    box-shadow: 0 0 8px rgba(0, 168, 255, 0.3);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--tech-cyan);
    font-weight: bold;
    font-size: 12px;
}

.form-check-input:hover {
    border-color: var(--input-focus);
    box-shadow: 0 0 6px rgba(0, 168, 255, 0.2);
}

.form-check-label {
    color: var(--tech-cyan);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    cursor: pointer;
    user-select: none;
}

/* 登录按钮样式 - 科技数字流风格 */
.btn-login {
    background: linear-gradient(135deg, #0a1929, #1a3a5f);
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 8px;
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 255, 255, 0.6);
    color: #ffffff;
    background: linear-gradient(135deg, #1a3a5f, #0a1929);
    text-shadow: 0 0 8px rgba(0, 168, 255, 0.8);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.btn-login::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: left 0.7s;
}

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

/* 错误提示样式 - 科技数字流风格 */
.error-alert {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease, alertPulse 2s infinite alternate;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alertPulse {
    0% { box-shadow: 0 0 10px rgba(255, 51, 102, 0.2); }
    100% { box-shadow: 0 0 20px rgba(255, 51, 102, 0.4); }
}

.error-alert i {
    color: var(--error-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.error-alert span {
    color: #ff6b6b;
    font-weight: 600;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    flex: 1;
}

/* 弹窗样式 - 科技数字流风格 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 168, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-dialog {
    transform: translateY(0);
}

.modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tech-gradient);
    z-index: 1;
    animation: borderFlow 3s linear infinite;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 2px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.modal-icon i {
    font-size: 1.8rem;
    color: var(--error-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', 'Courier New', monospace;
}

.modal-subtitle {
    color: var(--tech-cyan);
    font-size: 0.9rem;
    opacity: 0.8;
}

.modal-body {
    text-align: center;
    margin-bottom: 25px;
}

.modal-message {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    border: 1px solid rgba(0, 168, 255, 0.3);
    min-width: 120px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #0a1929, #1a3a5f);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #1a3a5f, #0a1929);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.5);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: rgba(26, 31, 41, 0.7);
    color: var(--tech-cyan);
}

.modal-btn-secondary:hover {
    background: rgba(0, 168, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }

    .system-title {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-icon i {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
    }
}
