:root {
    --primary: #2C3E50;
    --secondary: #34495E;
    --accent: #E8F4F8;
    --highlight: #3498DB;
    --light: #F8F9FA;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --purple: #8E44AD;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Clean geometric background */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    overflow: hidden;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 25% 25%, var(--highlight) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--purple) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-40px, -40px) rotate(360deg);
    }
}

.container {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 60px 20px;
}

.main-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 80px 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight), var(--purple));
}

.logo-container {
    margin-bottom: 50px;
    animation: fadeInScale 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
    transition: all 0.4s ease;
}

.logo img {
    width: 100%;
}

.logo:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.12));
}

.redirect-message {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
}

.redirect-message::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), var(--purple));
    border-radius: 1px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight), var(--purple));
    border-radius: 2px;
    animation: progress 3s ease-out infinite;
    transform-origin: left;
}

@keyframes progress {
    0% {
        transform: scaleX(0);
    }

    70% {
        transform: scaleX(0.8);
    }

    100% {
        transform: scaleX(1);
    }
}

.status-text {
    font-size: 14px;
    color: var(--highlight);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    color: var(--gray-300);
    animation: float 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 20px;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 15%;
    right: 15%;
    font-size: 16px;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 8%;
    font-size: 18px;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 12%;
    font-size: 14px;
    animation-delay: 3s;
}

.PoweredBy {
    background: #f1c40b;
    color: white;
    padding: 2px 12px;
    font-weight: 600;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 0.6;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .main-card {
        padding: 60px 30px;
        margin: 20px;
    }

    .logo {
        width: 350px;
    }

    .redirect-message {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .logo {
        width: 280px;
    }

    .redirect-message {
        font-size: 14px;
    }

    .progress-bar {
        width: 150px;
    }
}