﻿/* Welcome Page Styles */

.welcome-container {
    min-height: 99vh; /*calc(100vh)*/
    ; /* Adjust based on header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3748 0%, #4063a9 100%);
    background-attachment: fixed;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* For authenticated users with sidebar */
body .wrapper .content .welcome-container {
    min-height: calc(100vh); /* Adjust for sidebar layout */
    margin: -1.5rem; /* Counteract container padding */
    border-radius: 0;
}

/* For unauthenticated users */
body:not(.has-sidebar) .welcome-container {
    margin: -1rem -15px 0 -15px; /* Extend to full width */
    border-radius: 0;
}

.welcome-content {
    text-align: center;
    color: white;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.server-icon {
    margin-bottom: 2rem;
    position: relative;
}

    .server-icon i {
        font-size: 5rem;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        animation: pulse 2s ease-in-out infinite alternate;
    }

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.welcome-actions {
    margin-top: 2rem;
}

.welcome-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .welcome-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .welcome-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3);
    }

/* Animated Background Elements */
.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .server-icon i {
        font-size: 4rem;
    }

    .welcome-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .welcome-container {
        padding: 1rem 0.5rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .server-icon i {
        font-size: 3.5rem;
    }

    .welcome-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .welcome-container {
        background: #1a1a1a;
    }

    .welcome-btn {
        background: #007bff;
        border-color: #007bff;
    }

        .welcome-btn:hover {
            background: #0056b3;
            border-color: #0056b3;
        }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .server-icon i,
    .welcome-container::before {
        animation: none;
    }

    .welcome-btn {
        transition: none;
    }

        .welcome-btn:hover {
            transform: none;
        }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .welcome-container {
        background: linear-gradient(267deg, #4091e2 0%, #cadef1 100%);
    }
}

/* Print styles */
@media print {
    .welcome-container {
        background: white !important;
        color: black !important;
        min-height: auto;
    }

    .welcome-content {
        color: black !important;
    }

    .server-icon i {
        color: #333 !important;
    }

    .welcome-btn {
        display: none;
    }
}
