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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    overflow: hidden;
}

.loading-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f6f7;
    /* background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #2563eb 100%); */
    position: relative;
}

.loading-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particles 20s ease-in-out infinite;
}

@keyframes particles {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.loading-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease-out;
}

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

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-zio {
    color: #1f2937;
}

.logo-workspace {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.logo-dot {
    color: #0ea5e9;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.loading-spinner,
.loading-spinner-inner {
    border: 3px solid #f3f4f6;
    border-radius: 50%;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border-top-color: #0ea5e9;
    border-right-color: #3b82f6;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    will-change: transform;
}

.loading-spinner-inner {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-bottom-color: #2563eb;
    border-left-color: #3b82f6;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
    will-change: transform;
}

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

.loading-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.loading-text {
    color: #6b7280;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 2px;
}

.loading-dots span {
    width: 4px;
    height: 4px;
    background: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    will-change: transform, opacity;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.version-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.slow-message {
    margin-top: 1rem;
    color: #f59e0b;
    font-size: 0.9375rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slow-message.visible {
    opacity: 1;
}
