@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #0a0e27;
    color: #00ff9f;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Scanlines effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Glitch background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 159, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 159, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header h1 {
    font-size: 3em;
    color: #ff00ff;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 30px #ff00ff,
        2px 2px 0 #00ffff;
    animation: glitch 3s infinite;
    margin-bottom: 10px;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

.subtitle {
    color: #00ffff;
    font-size: 0.9em;
    text-shadow: 0 0 10px #00ffff;
}

.terminal {
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid #00ff9f;
    border-radius: 5px;
    padding: 20px;
    box-shadow:
        0 0 20px rgba(0, 255, 159, 0.3),
        inset 0 0 20px rgba(0, 255, 159, 0.1);
    margin-bottom: 30px;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #00ff9f;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff0055; box-shadow: 0 0 10px #ff0055; }
.dot-yellow { background: #ffff00; box-shadow: 0 0 10px #ffff00; }
.dot-green { background: #00ff9f; box-shadow: 0 0 10px #00ff9f; }

.terminal-title {
    color: #00ffff;
    font-size: 0.9em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    color: #ff00ff;
    font-size: 0.9em;
    text-transform: uppercase;
}

input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff9f;
    color: #00ff9f;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.5);
    border-color: #00ffff;
}

button {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: #0a0e27;
    padding: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

button:hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}

.info-panel {
    display: none;
}

.info-panel.active {
    display: block;
}

.status-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(0, 255, 159, 0.1);
    border-left: 3px solid #00ff9f;
}

.status-label {
    color: #00ffff;
}

.status-value {
    color: #ff00ff;
    font-weight: bold;
}

.token-display {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    padding: 15px;
    margin: 15px 0;
    word-break: break-all;
    font-size: 0.75em;
    color: #00ffff;
    position: relative;
    max-height: 150px;
    overflow-y: auto;
}

.token-label {
    color: #ff00ff;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.admin-btn {
    margin-top: 15px;
}

.error {
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.success {
    background: rgba(0, 255, 159, 0.2);
    border: 1px solid #00ff9f;
    color: #00ff9f;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.flag-display {
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
    border: 2px solid #ffff00;
    color: #ffff00;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
    animation: rainbow 3s linear infinite;
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.5);
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hint {
    background: rgba(0, 255, 255, 0.1);
    border-left: 3px solid #00ffff;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.85em;
    color: #00ffff;
}

.hex-code {
    font-family: 'Share Tech Mono', monospace;
    color: #ff00ff;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.logout-btn {
    background: linear-gradient(45deg, #ff0055, #ff5500);
    margin-top: 10px;
}

.comment-section {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed #00ff9f;
    font-size: 0.8em;
    color: #666;
}

.ascii-art {
    color: #00ffff;
    font-size: 0.6em;
    line-height: 1.2;
    margin: 20px 0;
    text-align: center;
    opacity: 0.5;
}
