/* ========== 登录页面样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'LXGW WenKai Screen', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,215,0,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102,126,234,0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
}

body::after {
    content: '🐉';
    position: absolute;
    font-size: clamp(150px, 30vw, 350px);
    opacity: 0.03;
    bottom: -50px;
    right: -50px;
    pointer-events: none;
    transform: rotate(-10deg);
}

.security-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.security-bg::before {
    content: '🛡️';
    position: absolute;
    font-size: clamp(100px, 20vw, 200px);
    opacity: 0.02;
    top: 10%;
    left: -30px;
    pointer-events: none;
}

.security-bg::after {
    content: '⚔️';
    position: absolute;
    font-size: clamp(90px, 18vw, 180px);
    opacity: 0.02;
    bottom: 10%;
    right: -30px;
    pointer-events: none;
}

.password-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 40px);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-user-notice {
    background: linear-gradient(135deg, #e6f0ff, #f0f7ff);
    border-left: 4px solid #0066cc;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-user-notice .notice-icon { font-size: 28px; }
.card-user-notice .notice-content { flex: 1; }
.card-user-notice .notice-title { font-weight: 700; color: #0066cc; font-size: 14px; margin-bottom: 4px; }
.card-user-notice .notice-desc { font-size: 12px; color: #4a6a8a; line-height: 1.4; }

.security-alert {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: clamp(10px, 3vw, 14px) clamp(14px, 4vw, 18px);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.security-alert .alert-icon { font-size: 24px; }
.security-alert .alert-content { flex: 1; }
.security-alert .alert-title { font-weight: 700; color: #92400e; font-size: 13px; margin-bottom: 4px; }
.security-alert .alert-desc { font-size: 11px; color: #b45309; line-height: 1.4; }

.traffic-alert {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #3b82f6;
    padding: clamp(10px, 3vw, 14px) clamp(14px, 4vw, 18px);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.traffic-alert .alert-icon { font-size: 24px; }
.traffic-alert .alert-content { flex: 1; }
.traffic-alert .alert-title { font-weight: 700; color: #1e40af; font-size: 13px; margin-bottom: 4px; }
.traffic-alert .alert-desc { font-size: 11px; color: #1e3a8a; line-height: 1.4; }

.lock-icon {
    background: linear-gradient(135deg, #1e3c72, #667eea);
    width: clamp(70px, 15vw, 90px);
    height: clamp(70px, 15vw, 90px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

.lock-icon span { 
    font-size: clamp(34px, 8vw, 44px); 
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

h1 {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #64748b;
    font-size: 12px;
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
}

.input-group { margin-bottom: 24px; text-align: left; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 8px; }

.password-input-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 4px 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.password-input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.password-icon { font-size: 20px; color: #94a3b8; }

.password-input-wrapper input {
    flex: 1;
    padding: 14px 12px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    font-family: monospace;
    letter-spacing: 2px;
}

.password-input-wrapper input::placeholder {
    letter-spacing: normal;
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
}

.password-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #667eea;
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72, #667eea);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

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

.error-message {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #dc2626;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.info-panel {
    margin-top: 24px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child { border-bottom: none; }
.info-item .info-icon { font-size: 16px; min-width: 28px; }
.info-item .info-text { flex: 1; }
.info-item .info-highlight { font-weight: 600; color: #667eea; }

.hint {
    margin-top: 20px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
}

.dragon-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 24px;
    opacity: 0.5;
}

.live-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    font-size: 11px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.live-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 手机端适配 */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    .password-container {
        padding: 24px 20px;
    }
    .security-alert, .traffic-alert {
        padding: 10px 14px;
    }
    .security-alert .alert-icon, .traffic-alert .alert-icon {
        font-size: 20px;
    }
    .info-panel {
        padding: 12px;
    }
    .live-stats {
        gap: 12px;
    }
}