@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

.main-content {
    padding: 50px !important;
}

:root {

    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #222222;


    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --text-accent: #19c0cc;


    --border-primary: #333333;
    --border-secondary: #444444;
    --border-accent: #19c0cc;


    --status-success: #00ff88;
    --status-warning: #ffaa00;
    --status-error: #ff4444;
    --status-info: #ffffff;


    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.2);


    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 40px;
    --spacing-2xl: 20px;


    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;


    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.01) 0%, transparent 50%);
    z-index: -2;
    animation: darkPulse 20s ease-in-out infinite;
}


.circuit-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}


.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text-accent);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 25%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    bottom: 15%;
    right: 30%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    top: 60%;
    left: 10%;
    animation-delay: 12s;
}

.particle:nth-child(6) {
    top: 45%;
    right: 15%;
    animation-delay: 15s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    25% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 1;
    }

    75% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) translateX(100px);
        opacity: 0;
    }
}


.energy-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.energy-wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    opacity: 0;
    animation: energyWave 8s ease-in-out infinite;
}

.energy-wave:nth-child(1) {
    top: 25%;
    animation-delay: 0s;
}

.energy-wave:nth-child(2) {
    top: 50%;
    animation-delay: 2s;
}

.energy-wave:nth-child(3) {
    top: 75%;
    animation-delay: 4s;
}

@keyframes energyWave {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    50% {
        transform: scaleX(1);
        opacity: 0.6;
    }

    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}


.hexagons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.hexagon {
    position: absolute;
    width: 40px;
    height: 23px;
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexagonFloat 20s ease-in-out infinite;
}

.hexagon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hexagon:nth-child(2) {
    top: 40%;
    right: 15%;
    animation-delay: 5s;
}

.hexagon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.hexagon:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 15s;
}

@keyframes hexagonFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}


.energy-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.energy-ray {
    position: absolute;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, transparent, var(--text-accent), transparent);
    animation: energyRay 12s ease-in-out infinite;
}

.energy-ray:nth-child(1) {
    top: 0;
    left: 20%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.energy-ray:nth-child(2) {
    top: 0;
    right: 30%;
    animation-delay: 3s;
    transform: rotate(-30deg);
}

.energy-ray:nth-child(3) {
    bottom: 0;
    left: 40%;
    animation-delay: 6s;
    transform: rotate(60deg);
}

.energy-ray:nth-child(4) {
    bottom: 0;
    right: 20%;
    animation-delay: 9s;
    transform: rotate(-45deg);
}

@keyframes energyRay {
    0% {
        height: 0;
        opacity: 0;
    }

    50% {
        height: 100vh;
        opacity: 0.4;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}


.digital-nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
    opacity: 0.02;
}


.interference {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.01;
}

.interference-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    animation: interferenceMove 6s ease-in-out infinite;
}

.interference-line:nth-child(1) {
    top: 30%;
    animation-delay: 0s;
}

.interference-line:nth-child(2) {
    top: 60%;
    animation-delay: 2s;
}

.interference-line:nth-child(3) {
    top: 90%;
    animation-delay: 4s;
}

@keyframes interferenceMove {

    0%,
    100% {
        transform: translateX(-100%) scaleX(0);
        opacity: 0;
    }

    50% {
        transform: translateX(0) scaleX(1);
        opacity: 0.3;
    }
}


.energy-pulses {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.energy-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid var(--text-accent);
    border-radius: 50%;
    animation: energyPulse 10s ease-in-out infinite;
}

.energy-pulse:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.energy-pulse:nth-child(2) {
    top: 65%;
    right: 20%;
    animation-delay: 5s;
}

@keyframes energyPulse {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}


.distortion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.005;
}

.distortion-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: distortionFloat 40s ease-in-out infinite;
}

@keyframes distortionFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.005;
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.02;
    }
}


.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: glitchOverlay 15s ease-in-out infinite;
}

.glitch-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0, 255, 136, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 0, 0, 0.05) 50%, transparent 51%);
    background-size: 4px 4px;
    animation: glitchScan 0.1s ease-in-out infinite;
}

@keyframes glitchOverlay {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    95% {
        opacity: 0.3;
    }
}

@keyframes glitchScan {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(2px);
    }
}


.magnetic-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.01;
}

.magnetic-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--text-accent), transparent);
    animation: magneticFlow 25s ease-in-out infinite;
}

.magnetic-line:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
}

.magnetic-line:nth-child(2) {
    left: 50%;
    animation-delay: 8s;
}

.magnetic-line:nth-child(3) {
    left: 75%;
    animation-delay: 16s;
}

@keyframes magneticFlow {

    0%,
    100% {
        transform: scaleY(0.3);
        opacity: 0.01;
    }

    50% {
        transform: scaleY(1);
        opacity: 0.03;
    }
}


.automation-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.automation-word {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-accent);
    opacity: 0.08;
    transform: rotate3d(1, 1, 0, 15deg);
    animation: wordFloat 20s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    white-space: nowrap;
    user-select: none;
}

/* Estilo especial para as palavras solicitadas */
.automation-word.special {
    opacity: 0.2;
    font-weight: 700;
    font-size: 25px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 30px rgba(0, 255, 136, 0.4);
    color: #00ffcc;
    animation: specialWordFloat 15s ease-in-out infinite;
    letter-spacing: 0.1em;
}

.automation-word.special:hover {
    opacity: 0.8 !important;
    transform: rotate3d(1, 1, 0, 15deg) scale(1.15) !important;
    text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 40px rgba(0, 255, 136, 0.6) !important;
    transition: all 0.3s ease;
    color: #00ffff !important;
}

@keyframes specialWordFloat {

    0%,
    100% {
        transform: rotate3d(1, 1, 0, 15deg) translateY(0) translateX(0);
        opacity: 0.4;
    }

    25% {
        transform: rotate3d(1, 1, 0, 20deg) translateY(-30px) translateX(20px);
        opacity: 0.5;
    }

    50% {
        transform: rotate3d(1, 1, 0, 10deg) translateY(-60px) translateX(-25px);
        opacity: 0.6;
    }

    75% {
        transform: rotate3d(1, 1, 0, 25deg) translateY(-30px) translateX(30px);
        opacity: 0.5;
    }
}


.automation-word:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.automation-word:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.automation-word:nth-child(3) {
    top: 45%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.automation-word:nth-child(4) {
    top: 55%;
    right: 25%;
    animation-delay: 9s;
    animation-duration: 30s;
}

.automation-word:nth-child(5) {
    top: 75%;
    left: 15%;
    animation-delay: 12s;
    animation-duration: 26s;
}

.automation-word:nth-child(6) {
    top: 35%;
    left: 60%;
    animation-delay: 15s;
    animation-duration: 24s;
}

.automation-word:nth-child(7) {
    top: 65%;
    right: 10%;
    animation-delay: 18s;
    animation-duration: 27s;
}

.automation-word:nth-child(8) {
    top: 85%;
    right: 35%;
    animation-delay: 21s;
    animation-duration: 29s;
}

.automation-word:nth-child(9) {
    top: 5%;
    left: 50%;
    animation-delay: 24s;
    animation-duration: 23s;
}

.automation-word:nth-child(10) {
    top: 95%;
    left: 40%;
    animation-delay: 27s;
    animation-duration: 25s;
}

.automation-word:nth-child(11) {
    top: 15%;
    left: 70%;
    animation-delay: 30s;
    animation-duration: 26s;
}

.automation-word:nth-child(12) {
    top: 40%;
    left: 80%;
    animation-delay: 33s;
    animation-duration: 28s;
}

.automation-word:nth-child(13) {
    top: 60%;
    left: 70%;
    animation-delay: 36s;
    animation-duration: 24s;
}

.automation-word:nth-child(14) {
    top: 80%;
    left: 60%;
    animation-delay: 39s;
    animation-duration: 27s;
}

.automation-word:nth-child(15) {
    top: 10%;
    right: 20%;
    animation-delay: 42s;
    animation-duration: 25s;
}

@keyframes wordFloat {

    0%,
    100% {
        transform: rotate3d(1, 1, 0, 15deg) translateY(0) translateX(0);
        opacity: 0.08;
    }

    25% {
        transform: rotate3d(1, 1, 0, 20deg) translateY(-20px) translateX(10px);
        opacity: 0.12;
    }

    50% {
        transform: rotate3d(1, 1, 0, 10deg) translateY(-40px) translateX(-15px);
        opacity: 0.15;
    }

    75% {
        transform: rotate3d(1, 1, 0, 25deg) translateY(-20px) translateX(20px);
        opacity: 0.12;
    }
}


.automation-word.highlight {
    animation: wordHighlight 8s ease-in-out infinite;
}

@keyframes wordHighlight {

    0%,
    80%,
    100% {
        opacity: 0.08;
        transform: rotate3d(1, 1, 0, 15deg) scale(1);
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    }

    90% {
        opacity: 0.25;
        transform: rotate3d(1, 1, 0, 15deg) scale(1.15);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
}


.automation-word:hover {
    opacity: 0.15 !important;
    transform: rotate3d(1, 1, 0, 15deg) scale(1.05) !important;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5) !important;
    transition: all 0.3s ease;
}

.nebula-cloud {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: nebulaFloat 25s ease-in-out infinite;
}

.nebula-cloud:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 30s;
}

.nebula-cloud:nth-child(2) {
    top: 70%;
    right: 25%;
    animation-delay: 10s;
    animation-duration: 35s;
}

.nebula-cloud:nth-child(3) {
    bottom: 15%;
    left: 60%;
    animation-delay: 20s;
    animation-duration: 40s;
}

@keyframes nebulaFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.02;
    }

    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0.05;
    }
}

@keyframes darkPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}


.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: darkFloat 25s ease-in-out infinite;
}

.floating-element.line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--text-accent), transparent);
}

.floating-element.dot {
    width: 4px;
    height: 4px;
    background: var(--text-accent);
    border-radius: 50%;
}

.floating-element.square {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-accent);
    transform: rotate(45deg);
}




.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
    opacity: 0.03;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: var(--text-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1;
    animation: matrixFall 8s linear infinite;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}


.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.05;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-accent), transparent);
    animation: scanMove 4s linear infinite;
}

.scan-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.scan-line:nth-child(2) {
    top: 40%;
    animation-delay: 1s;
}

.scan-line:nth-child(3) {
    top: 60%;
    animation-delay: 2s;
}

.scan-line:nth-child(4) {
    top: 80%;
    animation-delay: 3s;
}

@keyframes scanMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}


.binary-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.3;
    z-index: 1;
    animation: binaryPulse 2s ease-in-out infinite;
}

@keyframes binaryPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}


.logo {
    position: relative;
    animation: logoGlitch 10s ease-in-out infinite;
}

.logo::before,
.logo::after {
    content: 'Prisma Sistemas';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.logo::before {
    color: var(--status-error);
    animation: glitchBefore 10s ease-in-out infinite;
    z-index: -1;
}

.logo::after {
    color: var(--status-info);
    animation: glitchAfter 10s ease-in-out infinite;
    z-index: -2;
}

@keyframes logoGlitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    91% {
        transform: translate(-2px, 2px);
    }

    92% {
        transform: translate(2px, -2px);
    }

    93% {
        transform: translate(-2px, -2px);
    }

    94% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitchBefore {

    0%,
    90%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    91% {
        opacity: 0.8;
        transform: translate(-1px, 1px);
    }

    92% {
        opacity: 0.8;
        transform: translate(1px, -1px);
    }

    93% {
        opacity: 0.8;
        transform: translate(-1px, -1px);
    }

    94% {
        opacity: 0.8;
        transform: translate(1px, 1px);
    }
}

@keyframes glitchAfter {

    0%,
    90%,
    100% {
        opacity: 0;
        transform: translate(0);
    }

    91% {
        opacity: 0.6;
        transform: translate(1px, -1px);
    }

    92% {
        opacity: 0.6;
        transform: translate(-1px, 1px);
    }

    93% {
        opacity: 0.6;
        transform: translate(1px, 1px);
    }

    94% {
        opacity: 0.6;
        transform: translate(-1px, -1px);
    }
}


.title {
    overflow: hidden;
    border-right: 2px solid var(--text-accent);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}


.status-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-line-1 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-accent);
}

.status-line-2 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.9;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: terminalScan 3s ease-in-out infinite;
}

@keyframes terminalScan {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}


.form-input:focus {
    animation: inputGlitch 0.3s ease-in-out;
}

@keyframes inputGlitch {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    75% {
        transform: translateX(1px);
    }
}


.btn:hover {
    animation: buttonPulse 0.3s ease-in-out;
}

@keyframes buttonPulse {

    0%,
    100% {
        transform: translateY(-2px) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--text-accent);
    }
}


.hex-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.4;
    z-index: 1;
    animation: hexCount 5s linear infinite;
}

@keyframes hexCount {
    0% {
        content: '0x0000';
    }

    25% {
        content: '0x3FFF';
    }

    50% {
        content: '0x7FFF';
    }

    75% {
        content: '0xBFFF';
    }

    100% {
        content: '0xFFFF';
    }
}


.circuit-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.02;
}

.circuit-line {
    position: absolute;
    background: var(--text-accent);
    animation: circuitFlow 6s ease-in-out infinite;
}

.circuit-line.horizontal {
    height: 1px;
    width: 0;
    animation: circuitFlowHorizontal 6s ease-in-out infinite;
}

.circuit-line.vertical {
    width: 1px;
    height: 0;
    animation: circuitFlowVertical 6s ease-in-out infinite;
}

.circuit-line:nth-child(1) {
    top: 30%;
    left: 10%;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.circuit-line:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes circuitFlowHorizontal {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 200px;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes circuitFlowVertical {
    0% {
        height: 0;
        opacity: 0;
    }

    50% {
        height: 150px;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}


.data-stream {
    position: fixed;
    bottom: 200px;
    right: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--text-accent);
    opacity: 0.2;
    z-index: 1;
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) translateX(-20px);
        opacity: 0;
    }
}


.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element:nth-child(3) {
    bottom: 35%;
    left: 20%;
    animation-delay: 10s;
}

.floating-element:nth-child(4) {
    bottom: 25%;
    right: 25%;
    animation-delay: 15s;
}

.floating-element:nth-child(5) {
    top: 65%;
    left: 5%;
    animation-delay: 20s;
}

@keyframes darkFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.2;
    }
}


.container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg,
            var(--border-accent),
            transparent,
            var(--border-accent));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 8s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}


.header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.logo-container {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-accent);
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--text-accent);
    box-shadow: var(--shadow-glow);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-sm);
    text-transform: uppercase;
}

.title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-family: 'Inter', sans-serif;
}

.subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
}


.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--text-accent);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--text-accent);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
    box-shadow: var(--shadow-glow);
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}


.form-group {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
    background: var(--bg-elevated);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-help {
    margin-top: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.form-help-icon {
    color: var(--text-primary);
    opacity: 0.9;
    font-size: 1rem;
}

.error-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--status-error);
    font-size: 17px;
    font-family: 'Inter', sans-serif;
    display: none;
    max-width: 500px;
    margin: 0 auto;
}

.error-txt {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--status-error);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: center;
    margin-bottom: 35px;
}


.btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.6s;
}

.btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-primary);
    transform: none;
}

.btn-primary {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--text-accent);
}

.btn-primary:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}


.loader {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--text-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: var(--spacing-lg) auto;
    display: none;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-secondary);
    border-bottom: 2px solid var(--status-warning);
    border-radius: 50%;
    animation: spin 0.8s linear infinite reverse;
}

.loader::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 8px;
    height: 8px;
    background: var(--status-warning);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#qrcode {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

#qrcode img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-accent);
    max-width: 100%;
    height: auto;
    transition: var(--transition-normal);
}

#qrcode img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}


#timer {
    display: none;
    margin-top: var(--spacing-lg);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-accent);
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    letter-spacing: 0.05em;
}


.status-message {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.status-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--status-success);
}

.status-message.info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--status-info);
}

.status-message.warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--status-warning);
}

.status-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--status-error);
}


@media (max-width: 1366px) {
    .container {
        max-width: 550px;
        padding: var(--spacing-xl);
    }

    .logo {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 40px;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
    }

    .logo {
        font-size: 2rem;
    }

    .title {
        font-size: 1.4rem;
    }

    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0.5rem auto;
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
    }

    .logo {
        font-size: 1.8rem;
    }

    .title {
        font-size: 17px;
        text-align: center;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
}

#okMsg,
#disconnect,
#appScreen,
#msg-login {
    display: none;
}

#loginScreen {
    display: block;
}

.status-indicator {
    background: var(--text-accent);
}

.mt-30 {
    margin-top: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.center-msg {
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 20px;
}