::selection {
    background: #1d4ed8 !important;
    color: #fff !important;
}

::-moz-selection {
    background: #1d4ed8 !important;
    color: #fff !important;
}

.login-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 5;
}

.login-centered {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.logo-link-wrapper {
    position: relative;
    display: inline-grid;
    grid-template-areas: "overlay";
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.login-logo {
    grid-area: overlay;
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
    user-select: none;
    transition: opacity 0.2s, transform 0.2s, filter 0.2s;
    z-index: 2;
}

.back-icon-hover {
    grid-area: overlay;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #a3a3a3;
    opacity: 0;
    transform: scale(0.9) translateX(-10px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.logo-link-wrapper:hover .login-logo {
    opacity: 0;
}

.logo-link-wrapper:hover .back-icon-hover {
    opacity: 1;
    color: #fff;
    transform: scale(1) translateX(0);
}

.login-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #eee;
}

@media (min-width: 768px) {
    .login-header h1 {
        white-space: nowrap;
        width: max-content;
    }
}




.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-btn .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    position: relative;
    transform: translateY(0.5px);
}

.btn-discord {
    background: #4A55D9;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-discord:hover {
    background: #3f49bd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-roblox {
    background: #C43434;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-roblox:hover {
    background: #a82c2c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: translateX(-120%) skewX(-25deg);
    pointer-events: none;
    will-change: transform;
}

.login-btn:hover::before {
    animation: shine-sweep 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shine-sweep {
    0% { transform: translateX(-120%) skewX(-25deg); }
    100% { transform: translateX(120%) skewX(-25deg); }
}

.login-footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0;
    display: block;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    line-height: 1.5;
    z-index: 10;
}

.login-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.login-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fade-up {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-btn:disabled {
    cursor: not-allowed;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.login-btn:disabled .icon-container,
.login-btn:disabled svg {
    opacity: 0.4;
}

.particles-bg-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
    z-index: 0;
}

#particles-bg-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: fadeInParticles 2s ease-out 0.5s forwards;
}

@keyframes fadeInParticles {
    to { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    #particles-bg-canvas { display: none; }
}