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

:root {
    --cyan: #00f0ff;
    --yellow: #fcee09;
    --red: #ff003c;
    --magenta: #ff00a0;
    --dark: #0a0a12;
    --dark-2: #12121f;
    --green: #00ff66;
}

body {
    background: var(--dark);
    font-family: 'Share Tech Mono', monospace;
    color: var(--cyan);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    animation: glitchOverlay 8s infinite;
}

@keyframes glitchOverlay {
    0%, 95%, 100% { opacity: 0; }
    96% {
        opacity: 0.1;
        background: linear-gradient(transparent 50%, rgba(0, 240, 255, 0.05) 50%);
        background-size: 100% 4px;
    }
}

.terminal-container {
    width: 700px;
    max-width: 95vw;
    background: rgba(10, 10, 18, 0.95);
    border: 1px solid var(--cyan);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.3),
        inset 0 0 60px rgba(0, 240, 255, 0.05);
    position: relative;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyan), var(--magenta), var(--yellow), var(--cyan));
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.terminal-body {
    padding: 25px;
}

.boot-sequence {
    margin-bottom: 20px;
}

.boot-line {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(0, 240, 255, 0.7);
}

.boot-line .ok {
    color: var(--green);
    font-weight: bold;
}

.boot-line .warning {
    color: var(--yellow);
    font-weight: bold;
    animation: warningBlink 2s infinite;
}

@keyframes warningBlink {
    0%, 70%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ascii-art {
    font-size: 10px;
    line-height: 1.2;
    color: var(--yellow);
    margin-bottom: 25px;
    white-space: pre;
    text-align: center;
    text-shadow: 0 0 10px rgba(252, 238, 9, 0.5);
}

.auth-section {
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 13px;
    color: var(--yellow);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.cyber-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.cyber-input::placeholder {
    color: rgba(0, 240, 255, 0.3);
}

.cyber-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.08);
}

.cyber-btn {
    position: relative;
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    overflow: hidden;
}

.cyber-btn:hover {
    background: var(--yellow);
    color: var(--dark);
    box-shadow: 0 0 30px rgba(252, 238, 9, 0.4);
}

.cyber-btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.cyber-btn:hover .cyber-btn-glitch {
    animation: btnGlitch 0.3s;
}

@keyframes btnGlitch {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.5; transform: translate(-3px, 2px); color: var(--red); }
    40% { opacity: 0.5; transform: translate(3px, -2px); color: var(--cyan); }
    60% { opacity: 0.5; transform: translate(-1px, 1px); color: var(--magenta); }
    80% { opacity: 0; transform: translate(0); }
}

.output-area {
    margin-top: 20px;
    text-align: left;
    min-height: 30px;
}

.output-area p {
    font-size: 13px;
    line-height: 1.8;
    animation: typeIn 0.5s;
}

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.output-area .error {
    color: var(--red);
}

.output-area .success {
    color: var(--green);
}

.output-area .info {
    color: var(--yellow);
}

.terminal-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background: rgba(0, 240, 255, 0.05);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 11px;
    color: rgba(0, 240, 255, 0.5);
}

.footer-item {
    letter-spacing: 1px;
}

.blink {
    color: var(--red);
    animation: blinkAnim 1s infinite;
}

@keyframes blinkAnim {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Glitch text effect for flag display */
.flag-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: var(--green);
    padding: 15px;
    border: 1px solid var(--green);
    background: rgba(0, 255, 102, 0.05);
    margin-top: 10px;
    word-break: break-all;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
    animation: flagReveal 1s ease-out;
}

@keyframes flagReveal {
    0% {
        opacity: 0;
        transform: scaleY(0);
        filter: blur(10px);
    }
    50% {
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
        filter: blur(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}
