:root {
    /* Brand Colors extracted from logo */
    --brand-bg: #34446B;
    --brand-light-blue: #4D88BD;
    --brand-red: #C42B40;
    --brand-green: #376C46;
    
    --color-bg: #232d47; /* Darker shade of brand bg */
    --color-surface: rgba(52, 68, 107, 0.4); /* Translucent brand bg */
    --color-surface-border: rgba(255, 255, 255, 0.1);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Visually hide h1 for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Background Animations */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--brand-bg) 0%, var(--color-bg) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(77, 136, 189, 0.4) 0%, rgba(10,10,15,0) 70%); /* Light blue */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(196, 43, 64, 0.25) 0%, rgba(10,10,15,0) 70%); /* Red */
    animation-delay: -5s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(55, 108, 70, 0.25) 0%, rgba(10,10,15,0) 70%); /* Green */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Main Content */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 750px;
    padding: 2rem;
    perspective: 1000px;
}

.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-surface-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Make the logo transition smoothly when loading */
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-light-blue), var(--brand-red), var(--brand-green), transparent);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.message {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--brand-light-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.dot:nth-child(2) { 
    background-color: var(--brand-red);
    animation-delay: -0.16s; 
}
.dot:nth-child(3) { 
    background-color: var(--brand-green);
    animation-delay: -0.32s; 
}

@keyframes dotPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.3;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    .message {
        font-size: 1.15rem;
    }
}
