:root {
    --primary: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    --primary-solid: #0066ff;
    --text: #ffffff;
    --background: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-solid);
    border-radius: 5px;
}

body {
    line-height: 1.6;
    color: var(--text);
    background: #000000;
    background-image: linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    backdrop-filter: blur(1px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.topbar {
    background: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0.95;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo {
    width: 120px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
    position: relative;
    color: var(--text);
    filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.5));
    opacity: 0.95;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.auto-text {
    min-width: 12ch;
    position: relative;
    opacity: 1;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auto-text::after {
    content: '|';
    position: absolute;
    right: -4px;
    animation: blink 1s infinite;
    opacity: 0.8;
    display: none;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.gradient-text {
    color: var(--text);
}

.dashboard-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dashboard-link:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(1, 117, 254, 0.7);
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-container {
    background: transparent;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.2);
}



@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h1 .brand {
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(1, 117, 254, 0.7);
}

.large-cursor-glow {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0) 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.large-cursor-glow.active {
    opacity: 1;
}

.load-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.load-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.load-screen img {
    width: 120px;
    height: auto;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
}

.load-screen img.fade-out {
    opacity: 0;
}