:root {
    --bg: #d5efe8;
    --card: rgba(255, 255, 255, 0.72);
    --text: #1a2730;
    --muted: #5f6d74;
    --accent: #ff785e;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page-welcome {
    min-height: 100dvh;
}

.welcome-screen {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.welcome-card {
    width: min(90vw, 360px);
    background:
        radial-gradient(circle at top, rgba(255, 122, 96, 0.08), transparent 38%),
        var(--card);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 26px;
    padding: 1.7rem 1.5rem 1.45rem;
    text-align: center;
    display: grid;
    gap: 0.78rem;
    box-shadow: 0 22px 48px rgba(24, 39, 48, 0.14);
    position: relative;
    animation: pop-in 0.6s ease both;
    will-change: transform, opacity;
}

.welcome-kicker {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 122, 96, 0.12);
    color: #8f4d3f;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f87, #ff7058);
    box-shadow: 0 0 0 4px rgba(255, 122, 96, 0.12);
}

.welcome-pulse {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0.15rem auto 0.1rem;
    display: grid;
    place-items: center;
}

.welcome-pulse-core,
.welcome-pulse-ring {
    position: relative;
    border-radius: 50%;
}

.welcome-pulse-core {
    position: absolute;
    inset: 20px;
    background: linear-gradient(135deg, #ff9c84, var(--accent));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 12px 20px rgba(255, 113, 94, 0.24);
}

.welcome-pulse-ring {
    position: absolute;
}

.welcome-pulse-ring-a {
    inset: 10px;
    border: 1px solid rgba(255, 122, 96, 0.28);
    animation: pulse 1.35s ease-in-out infinite;
}

.welcome-pulse-ring-b {
    inset: 0;
    border: 1px solid rgba(85, 183, 159, 0.22);
    animation: pulse 1.35s ease-in-out infinite 180ms;
}

.welcome-title {
    font-size: clamp(1.45rem, 5vw, 1.9rem);
    font-weight: 800;
}

.welcome-subtitle {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    color: var(--muted);
    line-height: 1.45;
}

.welcome-progress {
    width: 100%;
    height: 0.42rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(20, 38, 43, 0.08);
}

.welcome-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #6fc9b2, #ff7a60);
    animation: welcome-progress 1.8s ease forwards;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-card,
    .welcome-pulse-ring,
    .welcome-progress-bar {
        animation: none;
        transition: none;
    }
}

body.theme-super-admin {
    --bg: #0f1620;
    --card: rgba(13, 21, 30, 0.86);
    --text: #eef6f7;
    --muted: #aab7bf;
    --accent: #ff8c74;
}

body.theme-super-admin .welcome-card {
    background:
        radial-gradient(circle at top, rgba(255, 140, 116, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(14, 24, 36, 0.94), rgba(11, 19, 28, 0.92));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

body.theme-super-admin .welcome-kicker {
    background: rgba(255, 140, 116, 0.16);
    color: #ffe8e2;
}

body.theme-super-admin .welcome-kicker::before {
    background: linear-gradient(135deg, #ffd0c7, #ff8c74);
    box-shadow: 0 0 0 4px rgba(255, 140, 116, 0.16);
}

body.theme-super-admin .welcome-pulse-core {
    background: linear-gradient(135deg, #ffd0c7, #ff8c74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 20px rgba(255, 140, 116, 0.3);
}

body.theme-super-admin .welcome-pulse-ring-a {
    border-color: rgba(255, 140, 116, 0.4);
}

body.theme-super-admin .welcome-pulse-ring-b {
    border-color: rgba(111, 201, 178, 0.28);
}

body.theme-super-admin .welcome-progress {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-super-admin .welcome-progress-bar {
    background: linear-gradient(90deg, #6fc9b2, #ff8c74);
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.94);
        opacity: 0.58;
    }

    70% {
        transform: scale(1.04);
        opacity: 0.92;
    }

    100% {
        transform: scale(1.08);
        opacity: 0.42;
    }
}

@keyframes welcome-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
