/* static/css/shared.css */

/* Root Styles */
:root {
    color-scheme: dark;
}

/* Typography */
body {
    font-family: 'Geist Sans', sans-serif;
}

.mono {
    font-family: 'Geist Mono', monospace;
}

/* Animations */
@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Components */

/* Noise Background */
.noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Form Glow */
.form-glow {
    position: relative;
    overflow: hidden;
}

.form-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 80%
    );
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
}
