:root {
    --primary-color: #8cc63f; /* based on the green in logo */
    --secondary-color: #0071bc; /* based on the blue in logo */
    --accent-color: #fbb03b; /* based on the sun yellow */
    --text-light: #f8f9fa;
    --text-muted: #e9ecef;
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    color: var(--text-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0d1117;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay to ensure text readability over the image */
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.7) 0%, rgba(2, 12, 27, 0.4) 100%);
    z-index: 1;
}

.glass-container {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

.brand-logo {
    max-width: 240px;
    height: auto;
    display: block;
}

.content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.content h1 span {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.content p {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 95%;
    margin: 0 auto;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-right-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loading-text {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes shine {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 1; }
    40% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

/* Responsive */
@media (max-width: 640px) {
    .glass-container {
        padding: 3rem 2rem;
    }
    .content h1 {
        font-size: 2.2rem;
    }
    .brand-logo {
        max-width: 200px;
    }
    .logo-wrapper {
        padding: 1.2rem 2rem;
    }
}
