@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

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

:root {
    --red: #ff4454;
    --red-bright: #ff6b78;
    --red-dark: #2a0a0e;
    --red-glow: rgba(255, 68, 84, 0.4);
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --text-dim: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
}

.terminal {
    width: 100%;
    max-width: 800px;
    background: #111;
    border: 2px solid var(--red);
    box-shadow:
        0 0 30px var(--red-glow),
        inset 0 0 30px rgba(255, 68, 84, 0.05);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--red-dark);
    border-bottom: 1px solid var(--red);
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--red-bright);
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--red); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--red); }
}

.terminal-body {
    padding: 24px;
}

.system-info {
    margin-bottom: 24px;
    overflow-x: auto;
}

.system-info pre {
    font-size: 11px;
    line-height: 1.2;
    color: var(--red);
}

.auth-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: 1px;
}

.input-group label svg {
    color: var(--red);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(255, 68, 84, 0.25);
}

.input-group input::placeholder {
    color: #777;
}

button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--red);
    border: none;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-end;
}

button:hover:not(:disabled) {
    background: var(--red-bright);
    box-shadow: 0 0 20px var(--red-glow);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.response-area {
    background: #151515;
    border: 1px solid #333;
    padding: 16px;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 24px;
    font-size: 14px;
}

.response-line {
    padding: 6px 0;
    border-bottom: 1px solid #252525;
}

.response-line:last-child {
    border-bottom: none;
}

.response-line.system {
    color: var(--text-dim);
}

.response-line.success {
    color: #4ade80;
    font-weight: bold;
}

.response-line.denied {
    color: var(--red);
    font-weight: bold;
}

.response-line.error {
    color: #fb923c;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-family: 'Questrial', sans-serif;
    letter-spacing: 0.5px;
}

.clearance {
    color: var(--text-dim);
    letter-spacing: 1px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #151515;
}

::-webkit-scrollbar-thumb {
    background: #444;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 600px) {
    .auth-section {
        flex-direction: column;
    }

    button {
        width: 100%;
        justify-content: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .system-info pre {
        font-size: 8px;
    }
}