/* V21 MATRIX LOGIN — 深綠高速雨碼模式 */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: Consolas, "Cascadia Code", monospace;
    color: #0f0;
}

/* 全螢幕 canvas Rain */
#matrixCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* 上層 HUD Login 面板 */
.matrix-login-wrap {
    position: relative;
    z-index: 2;
    width: 420px;
    margin: 120px auto 0 auto;
    padding: 24px 26px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0,255,0,0.5);
    box-shadow:
        0 0 20px rgba(0,255,0,0.6),
        0 0 60px rgba(0,255,0,0.25);
}

.matrix-title {
    text-align: center;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    color: #0f0;
    text-shadow: 0 0 8px #0f0;
    margin-bottom: 10px;
}

.matrix-sub {
    text-align: center;
    font-size: 0.8rem;
    color: #8f8;
    margin-bottom: 12px;
}

.matrix-status {
    font-size: 0.8rem;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 6px;
}

.matrix-status.lan {
    border: 1px solid #0f0;
    background: rgba(0,64,0,0.5);
    color: #bfffbf;
}
.matrix-status.wan {
    border: 1px solid #f33;
    background: rgba(64,0,0,0.6);
    color: #ffcfcf;
}

/* Input 區域 */
.matrix-form {
    text-align: center;
}

.matrix-input {
    width: 85%;
    padding: 8px 10px;
    margin: 5px 0;
    border: none;
    border-bottom: 1px solid #0f0;
    background: transparent;
    color: #0f0;
    text-align: center;
    outline: none;
    font-size: 0.95rem;
}
.matrix-input::placeholder {
    color: #0a0;
}

.matrix-input:focus {
    box-shadow: 0 0 8px #0f0;
}

/* 按鈕 */
.matrix-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #0f0;
    background: rgba(0,0,0,0.7);
    color: #0f0;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
}
.matrix-btn:hover {
    background: rgba(0,80,0,0.8);
    box-shadow: 0 0 12px #0f0;
}

/* 小提示 */
.matrix-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #9f9;
    text-align: center;
    opacity: 0.9;
}

/* Scanline 疊加（沿用概念） */
.matrix-scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0,255,0,0.05) 0px,
        rgba(0,255,0,0.05) 1px,
        transparent 2px
    );
    opacity: 0.25;
    z-index: 1;
}
