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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    margin-bottom: 48px;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.spinner-container {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 32px;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.25px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 32px;
    overflow: hidden;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .logo-text {
        font-size: 28px;
    }

    .spinner-container {
        width: 40px;
        height: 40px;
    }

    .loading-text {
        font-size: 20px;
    }

    .loading-subtext {
        font-size: 14px;
    }

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