:root {
    /* Palette néon cyberpunk */
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #bc13fe;
    --neon-yellow: #fffc00;
    --neon-green: #0fff50;
    --neon-red: #ff003c;
    
    /* Couleurs de fond */
    --cyber-black: #0a0a0f;
    --cyber-dark: #121221;
    --cyber-darker: #07070f;
    --cyber-grid: rgba(5, 25, 35, 0.5);
    
    /* Couleurs d'interface */
    --cyber-border: #33337b;
    --cyber-text: #dfdfff;
    --cyber-text-shadow: rgba(255, 0, 255, 0.7);
    --cyber-glow: rgba(120, 0, 255, 0.5);
    --cyber-highlight: rgba(235, 0, 255, 0.2);
    
    /* Effets */
    --cyber-glitch-speed: 500ms;
    --scan-speed: 3s;
    --pulse-speed: 2s;
    
    /* Dimensions */
    --border-width: 2px;
    --corner-size: 20px;
}

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

@font-face {
    font-family: 'Cyber';
    src: url('https://assets.codepen.io/1538474/cyber.woff2') format('woff2');
}

body {
    font-family: 'Orbitron', 'Share Tech Mono', monospace;
    background: var(--cyber-darker);
    color: var(--cyber-text);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    background-image: 
        radial-gradient(circle at center, rgba(54, 0, 115, 0.3) 0%, transparent 70%),
        linear-gradient(to bottom, var(--cyber-darker), var(--cyber-black));
}

.cyber-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* GLITCH EFFECT OVERLAY */
.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: glitch-lines 10s infinite linear;
}

.glitch-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.1;
}

/* SPLASH SCREEN */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.cyber-logo-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cyber-frame {
    position: absolute;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px;
    left: -20px;
    border: var(--border-width) solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-purple), inset 0 0 20px var(--neon-purple);
    animation: frame-flicker 4s infinite alternate;
    z-index: 1;
}

.cyber-frame::before, 
.cyber-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
}

.cyber-frame::before {
    top: -5px;
    left: -5px;
    border-top: var(--border-width) solid var(--neon-pink);
    border-left: var(--border-width) solid var(--neon-pink);
    box-shadow: inset 5px 5px 20px -5px var(--neon-pink);
}

.cyber-frame::after {
    bottom: -5px;
    right: -5px;
    border-bottom: var(--border-width) solid var(--neon-blue);
    border-right: var(--border-width) solid var(--neon-blue);
    box-shadow: inset -5px -5px 20px -5px var(--neon-blue);
}

.logo-ascii {
    font-family: monospace;
    font-size: 15px;
    line-height: 1.1;
    white-space: pre;
    text-shadow: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-blue);
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: logo-appear 2s forwards 0.5s;
    z-index: 2;
}

.subtitle {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    opacity: 0;
    animation: fade-in 2s forwards 1.5s;
}

.spinner {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 20px auto;
    opacity: 0;
    animation: fade-in 0.5s forwards 0.5s;
}

.spinner-sector {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
}

.spinner-sector-1 {
    border-top-color: var(--neon-blue);
    animation: rotate 2s infinite linear;
}

.spinner-sector-2 {
    border-left-color: var(--neon-purple);
    animation: rotate 2s infinite 0.5s linear;
}

.spinner-sector-3 {
    border-right-color: var(--neon-pink);
    animation: rotate 2s infinite 1s linear;
}

.loading-bar {
    width: 80%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    opacity: 0;
    animation: fade-in 0.5s forwards 1s;
}

.loading-bar .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    animation: load 3s forwards ease-in-out, glow 1.5s infinite alternate;
}

.cyber-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    margin-top: 20px;
    color: var(--cyber-text);
    text-shadow: 0 0 8px var(--neon-blue);
    opacity: 0;
    animation: fade-in 0.5s forwards 1.5s;
}

.cyber-typing-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    margin-top: 10px;
    color: var(--neon-green);
    opacity: 0;
    height: 20px;
    overflow: hidden;
    position: relative;
    animation: fade-in 0.5s forwards 2s;
}

.cyber-typing-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    height: 100%;
    width: 2px;
    background-color: var(--neon-green);
    animation: cursor-blink 0.8s infinite;
}

/* AUTH CONTAINER */
#auth-container {
    width: 80%;
    max-width: 900px;
    min-height: 600px;
    background: rgba(10, 10, 25, 0.8);
    border: 1px solid var(--cyber-border);
    box-shadow: 0 0 30px var(--cyber-glow), inset 0 0 20px var(--cyber-glow);
    backdrop-filter: blur(10px);
    position: relative;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    animation: scale-in 0.5s forwards 3.5s;
    overflow: hidden;
}

.cyber-corner {
    position: absolute;
    width: var(--corner-size);
    height: var(--corner-size);
    z-index: 2;
}

.top-left {
    top: 0;
    left: 0;
    border-top: 3px solid var(--neon-blue);
    border-left: 3px solid var(--neon-blue);
    box-shadow: -5px -5px 20px -5px var(--neon-blue);
}

.top-right {
    top: 0;
    right: 0;
    border-top: 3px solid var(--neon-pink);
    border-right: 3px solid var(--neon-pink);
    box-shadow: 5px -5px 20px -5px var(--neon-pink);
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid var(--neon-purple);
    border-left: 3px solid var(--neon-purple);
    box-shadow: -5px 5px 20px -5px var(--neon-purple);
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid var(--neon-blue);
    border-right: 3px solid var(--neon-blue);
    box-shadow: 5px 5px 20px -5px var(--neon-blue);
}

.neon-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
    z-index: -1;
}

.neon-stripes::before, 
.neon-stripes::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-purple), var(--neon-blue));
    animation: stripe-flow 15s infinite linear;
}

.neon-stripes::before {
    top: 15%;
    transform: skewY(5deg);
}

.neon-stripes::after {
    bottom: 25%;
    transform: skewY(-5deg);
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--cyber-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    z-index: -1;
}

.cyber-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--cyber-border);
}

.nav-tab {
    padding: 15px 30px;
    font-size: 16px;
    letter-spacing: 2px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-tab:not(.inactive)::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-purple);
}

.nav-tab.inactive {
    color: rgba(255, 255, 255, 0.5);
}

.nav-tab:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* Auth Page */
.auth-page {
    display: none;
    padding: 0 40px 40px;
}

.auth-page.active {
    display: block;
    animation: fade-in 0.5s forwards;
}

.hologram-container {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.hologram-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: hologram-float 4s infinite ease-in-out;
}

.hologram-rings {
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    opacity: 0.5;
    animation: hologram-ring-rotate 10s infinite linear;
}

.hologram-rings::before,
.hologram-rings::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

.hologram-rings::after {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
    animation: hologram-ring-rotate 15s infinite linear reverse;
}

.cyber-icon {
    font-style: normal;
    font-size: 40px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanner var(--scan-speed) infinite linear;
}

h2 {
    font-size: 28px;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-align: center;
    position: relative;
}

.cyberpunk-text {
    color: white;
}

.cyberpunk-gradient-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-flow 5s linear infinite;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cyber-darker);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    opacity: 0.8;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-blue);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    opacity: 0.8;
}

/* FORM STYLES */
.cyber-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.cyber-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.cyber-label .cyber-icon {
    font-size: 18px;
    margin-right: 8px;
}

.cyber-input-wrapper {
    position: relative;
    overflow: hidden;
}

.cyber-input-wrapper input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20, 20, 40, 0.6);
    color: white;
    border: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    outline: none;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.cyber-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cyber-input-wrapper input:focus::placeholder {
    color: transparent;
}

.cyber-input-border {
    position: absolute;
    background: var(--neon-purple);
    transition: all 0.3s;
}

.cyber-input-border.top,
.cyber-input-border.bottom {
    height: 2px;
    width: 100%;
    transform: scaleX(0);
}

.cyber-input-border.left,
.cyber-input-border.right {
    width: 2px;
    height: 100%;
    transform: scaleY(0);
}

.cyber-input-border.top {
    top: 0;
    left: 0;
    transform-origin: left;
}

.cyber-input-border.right {
    top: 0;
    right: 0;
    transform-origin: top;
    transition-delay: 0.3s;
}

.cyber-input-border.bottom {
    bottom: 0;
    right: 0;
    transform-origin: right;
    transition-delay: 0.6s;
}

.cyber-input-border.left {
    bottom: 0;
    left: 0;
    transform-origin: bottom;
    transition-delay: 0.9s;
}

.cyber-input-wrapper:focus-within .cyber-input-border.top,
.cyber-input-wrapper:focus-within .cyber-input-border.bottom {
    transform: scaleX(1);
}

.cyber-input-wrapper:focus-within .cyber-input-border.left,
.cyber-input-wrapper:focus-within .cyber-input-border.right {
    transform: scaleY(1);
}

.cyber-input-wrapper:focus-within .top,
.cyber-input-wrapper:hover .top {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.cyber-input-wrapper:focus-within .right,
.cyber-input-wrapper:hover .right {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.cyber-input-wrapper:focus-within .bottom,
.cyber-input-wrapper:hover .bottom {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.cyber-input-wrapper:focus-within .left,
.cyber-input-wrapper:hover .left {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.cyber-input-glow {
    position: absolute;
    width: 50px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    top: 0;
    left: -100px;
    opacity: 0;
    pointer-events: none;
}

.cyber-input-wrapper:focus-within .cyber-input-glow {
    animation: input-glow-sweep 1.5s infinite ease;
}

/* CHECKBOX STYLES */
.cyber-checkbox-group {
    margin-bottom: 25px;
}

.cyber-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cyber-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 22px;
    width: 22px;
    border: 2px solid var(--cyber-border);
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
    background: rgba(20, 20, 40, 0.6);
}

.checkmark::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 0%;
    background: var(--neon-blue);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
}

.cyber-checkbox .check-label {
    font-size: 14px;
    letter-spacing: 1px;
}

.cyber-checkbox input:checked ~ .checkmark::before {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
}

.cyber-checkbox:hover .checkmark {
    border-color: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

/* BUTTON STYLES */
.auth-actions {
    margin-top: 40px;
    margin-bottom: 20px;
}

.cyber-button {
    position: relative;
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
    background: var(--cyber-dark);
    border: none;
    outline: none;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.cyber-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(115deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: all 0.5s;
    transform: translateX(-100%);
}

.cyber-button:hover::before {
    transform: translateX(100%);
}

.cyber-button .cyber-button-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px var(--neon-blue);
    z-index: 1;
}

.cyber-button .cyber-button-border::before,
.cyber-button .cyber-button-border::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    transition: all 0.3s;
}

.cyber-button .cyber-button-border::before {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--neon-blue);
    border-left: 3px solid var(--neon-blue);
}

.cyber-button .cyber-button-border::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid var(--neon-purple);
    border-right: 3px solid var(--neon-purple);
}

.cyber-button:hover .cyber-button-border::before,
.cyber-button:hover .cyber-button-border::after {
    width: 30px;
    height: 30px;
}

.cyber-button-text {
    position: relative;
    z-index: 1;
}

.cyber-button-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    opacity: 0;
    z-index: 0;
}

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

.cyber-button.pulsate {
    animation: button-pulse 2s infinite;
}

/* PASSWORD STRENGTH METER */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.strength-meter {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    height: 6px;
    width: 100%;
}

.strength-meter .segment {
    flex: 1;
    background: rgba(100, 100, 100, 0.3);
    height: 100%;
    transition: all 0.3s;
}

.strength-meter[data-strength="1"] .segment:nth-child(1) {
    background: var(--neon-red);
}

.strength-meter[data-strength="2"] .segment:nth-child(1),
.strength-meter[data-strength="2"] .segment:nth-child(2) {
    background: var(--neon-yellow);
}

.strength-meter[data-strength="3"] .segment:nth-child(1),
.strength-meter[data-strength="3"] .segment:nth-child(2),
.strength-meter[data-strength="3"] .segment:nth-child(3) {
    background: var(--neon-blue);
}

.strength-meter[data-strength="4"] .segment {
    background: var(--neon-green);
}

.strength-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-top: 5px;
    transition: all 0.3s;
}

/* MISC ELEMENTS */
.cyber-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.cyber-divider .line {
    flex: 1;
    height: 1px;
    background: var(--cyber-border);
}

.cyber-divider .text {
    padding: 0 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.cyber-secondary-options {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cyber-link {
    color: var(--neon-blue);
    font-size: 14px;
    text-decoration: none;
    position: relative;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cyber-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--neon-blue);
    transition: width 0.3s;
}

.cyber-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.cyber-link:hover::after {
    width: 100%;
    background: var(--neon-pink);
    box-shadow: 0 0 5px var(--neon-pink);
}

.neon-link {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s;
}

.neon-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.cyber-warning {
    display: flex;
    align-items: center;
    margin-top: 30px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--neon-red);
    padding: 10px;
}

.warning-icon {
    width: 25px;
    height: 25px;
    background: var(--neon-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--neon-red);
}

.warning-text {
    font-size: 14px;
    color: var(--neon-red);
    letter-spacing: 1px;
}

/* Biometric scanner */
.biometric-scanner {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), inset 0 0 10px var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-area {
    width: 80%;
    height: 80%;
    border: 1px dashed var(--neon-green);
    position: relative;
}

.scan-line-horizontal {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--neon-green);
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--neon-green);
    animation: scan-horizontal 2s ease-in-out infinite alternate;
}

.scan-target {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--neon-green);
    animation: scan-target 4s infinite alternate;
}

.scan-target::before,
.scan-target::after {
    content: '';
    position: absolute;
    background: var(--neon-green);
}

.scan-target::before {
    width: 2px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scan-target::after {
    width: 10px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* CIRCUIT ANIMATIONS */
.circuit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
}

.circuit-path {
    stroke: var(--neon-blue);
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 1000;
    animation: circuit-trace 10s infinite linear;
}

.circuit-path:nth-child(2) {
    stroke: var(--neon-purple);
    animation-duration: 15s;
}

.circuit-path:nth-child(3) {
    stroke: var(--neon-pink);
    animation-duration: 12s;
    animation-delay: 1s;
}

.circuit-path:nth-child(4) {
    stroke: var(--neon-blue);
    animation-duration: 18s;
    animation-delay: 2s;
}

/* DATA NODES */
.data-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    top: calc(var(--y) - 4px);
    left: calc(var(--x) - 4px);
    box-shadow: 0 0 15px var(--neon-blue);
    animation: node-pulse 2s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

.node::before,
.node::after {
    content: '';
    position: absolute;
    background: var(--neon-blue);
    opacity: 0.7;
}

.node::before {
    width: 20px;
    height: 2px;
    top: 3px;
    left: 8px;
    animation: pulse-horizontal 1s ease-in-out infinite alternate;
}

.node::after {
    width: 2px;
    height: 20px;
    top: 8px;
    left: 3px;
    animation: pulse-vertical 1s ease-in-out infinite alternate;
}

/* PARTICLES */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

/* ANIMATIONS */
@keyframes frame-flicker {
    0%, 95% {
        opacity: 1;
    }
    96%, 98% {
        opacity: 0.8;
    }
    99% {
        opacity: 1;
    }
}

@keyframes logo-appear {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
        color: transparent;
    }
    50% {
        color: var(--neon-pink);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
        color: var(--neon-blue);
        text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);
    }
}

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

@keyframes load {
    0% { width: 0; }
    20% { width: 20%; }
    50% { width: 40%; }
    70% { width: 60%; }
    90% { width: 85%; }
    100% { width: 100%; }
}

@keyframes glow {
    from { box-shadow: 0 0 10px var(--neon-blue); }
    to { box-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-purple); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes stripe-flow {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

@keyframes scanner {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes hologram-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes hologram-ring-rotate {
    0% { transform: rotateX(60deg) rotateZ(0); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes text-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

@keyframes input-glow-sweep {
    from { left: -100px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    to { left: 100%; opacity: 0; }
}

@keyframes cursor-blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes btn-glitch {
    0%, 100% { opacity: 0; }
    5%, 10% { opacity: 0.6; }
    15% { opacity: 0; }
    20%, 25% { opacity: 0.3; }
    30% { opacity: 0; }
}

@keyframes button-pulse {
    0%, 100% { 
        background: var(--cyber-dark);
        box-shadow: 0 0 5px var(--neon-blue);
    }
    50% { 
        background: var(--cyber-darker);
        box-shadow: 0 0 15px var(--neon-pink), 0 0 40px var(--neon-purple); 
    }
}

@keyframes glitch-lines {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1px); }
    75% { transform: translateY(-1px); }
}

@keyframes scan-horizontal {
    0%, 100% { top: 20%; }
    50% { top: 80%; }
}

@keyframes scan-target {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
}

@keyframes circuit-trace {
    to { stroke-dashoffset: 0; }
}

@keyframes node-pulse {
    from { transform: scale(0.8); opacity: 0.7; }
    to { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-horizontal {
    from { transform: scaleX(1); opacity: 0.6; }
    to { transform: scaleX(1.5); opacity: 0.9; }
}

@keyframes pulse-vertical {
    from { transform: scaleY(1); opacity: 0.6; }
    to { transform: scaleY(1.5); opacity: 0.9; }
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .cyber-logo-container {
        width: 95%;
        height: 300px;
    }
    
    .logo-ascii {
        font-size: 10px;
    }
    
    #auth-container {
        width: 95%;
        min-height: auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cyber-header {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hologram-container {
        display: none;
    }
    
    .cyber-form {
        padding: 0;
    }
    
    .auth-page {
        padding: 0 20px 20px;
    }
    
    .biometric-scanner {
        display: none;
    }
}

/* CREATE PARTICLES WITH CSS */
.particles::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--neon-blue) 1px, transparent 1px),
                      radial-gradient(var(--neon-purple) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: particles-float 20s infinite linear;
    opacity: 0.2;
}

@keyframes particles-float {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 50px 50px, 75px 75px; }
}

/* CREATE DECORATIVE ANIMATED ELEMENTS */
.particles::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
                             rgba(188, 19, 254, 0.2) 0%, 
                             rgba(188, 19, 254, 0.1) 40%, 
                             transparent 70%);
    border-radius: 50%;
    animation: central-pulse 5s infinite ease-in-out;
}

@keyframes central-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}
