* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 247, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    z-index: -1;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 247, 255, 0.5);
    animation: scan 3s linear infinite;
    z-index: 1000;
    pointer-events: none;
}

@keyframes scan {
    0% { top: 0; opacity: 1; }
    50% { opacity: 0.5; }
    100% { top: 100%; opacity: 1; }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box {
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid #00f7ff;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

.glitch-wrapper { text-align: center; margin-bottom: 10px; }

.glitch {
    font-size: 32px;
    color: #00f7ff;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.login-form { margin-top: 20px; }

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    color: #00f7ff;
    font-size: 14px;
    margin-bottom: 8px;
}

.label-icon { margin-right: 5px; }

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f7ff;
    transition: width 0.3s;
}

.input-group input:focus ~ .input-border { width: 100%; }

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00f7ff, #0099ff);
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.4);
}

.btn-text { transition: all 0.3s; }
.btn-icon { font-size: 20px; }

.status-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.info-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.panel-item {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.panel-item:hover {
    border-color: #00f7ff;
    transform: translateY(-3px);
}

.panel-icon { font-size: 30px; margin-bottom: 10px; }

.panel-content h3 {
    color: #00f7ff;
    font-size: 14px;
    margin-bottom: 5px;
}

.panel-content p {
    color: #666;
    font-size: 12px;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 12px;
}

@media (max-width: 768px) {
    .info-panel { grid-template-columns: 1fr; }
    .login-box { padding: 25px 15px; margin: 0 10px; }
    .glitch { font-size: 22px; }
    .container { padding: 20px 10px; }
    .input-group input { padding: 10px 12px; font-size: 16px; }
    .btn-login { padding: 12px; font-size: 15px; }
    .status-bar { gap: 10px; }
    .status-item { font-size: 11px; }
}

@media (max-width: 480px) {
    .login-box { padding: 20px 12px; }
    .glitch { font-size: 20px; }
    .subtitle { font-size: 12px; }
    .input-group label { font-size: 13px; }
    .terminal-header { margin: -15px -12px 15px -12px; padding: 8px 12px; }
    .dot { width: 10px; height: 10px; }
}
