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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Unbounded', system-ui, -apple-system, sans-serif;
    background-color: #000000;
    background-image: url('https://i.pinimg.com/1200x/47/83/b5/4783b533f08b35870eafb837ea1a8c2c.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    will-change: opacity, transform;
}

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 9999;
}

.app-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-loading.hide {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

body.auth-page::before {
    background: rgba(0, 0, 0, 0.9) !important;
}

.auth-form-container {
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a !important;
    background-image: none !important;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.auth-form-container::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.auth-form-container > * {
    position: relative;
    z-index: 1;
}

.auth-card {
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 25%, rgba(139, 92, 246, 0.08) 45%, rgba(139, 92, 246, 0.03) 65%, rgba(10, 10, 10, 0.6) 85%, rgba(10, 10, 10, 1) 100%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: border-color 0.2s ease-in-out;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}


.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}


.font-mono, [class*="font-mono"], [style*="font-mono"] {
    font-family: 'Courier New', Courier, monospace !important;
    letter-spacing: 0.5px;
}


input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
}


.blur-sm {
    filter: blur(4px);
    user-select: none;
}


@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
