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

body,
html {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.loader {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.preload-title {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInScale 0.8s ease-out;
}

.logo {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    animation: zoomInOut 2s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.app-name {
    margin-bottom: 50px;
    animation: fadeInSlideDown 0.8s ease-out 0.2s both;
}

.app-name h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    margin: 0;
}

.loading-container {
    margin-bottom: 40px;
    animation: fadeInSlideUp 0.8s ease-out 0.4s both;
}

.spinner {
    width: 20px;
    height: 20px;
    margin: 0 auto 20px;
    border: 2px solid rgba(50, 157, 168, 0.2);
    border-top-color: #329da8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #454c66;
    font-weight: 400;
    letter-spacing: 0.3px;
    animation: fadeInPulse 2s ease-in-out infinite;
}

.brand-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

.brand-text {
    font-size: 12px;
    color: #999999;
    margin: 0;
    font-weight: 400;
}

.brand-highlight {
    color: #329da8;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

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

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) scale(1);
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)) scale(1.05);
    }
}

@keyframes zoomInOut {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-name h1 {
        font-size: 22px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .loading-container {
        margin-bottom: 30px;
    }

    .brand-footer {
        bottom: 20px;
    }

    .brand-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .app-name h1 {
        font-size: 18px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .app-name {
        margin-bottom: 35px;
    }

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