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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #fff;

    /* Rose Red Gradient */
    background:
        radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.28), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(244, 63, 94, 0.20), transparent 35%),
        linear-gradient(135deg, #19070c, #3b0a18 50%, #160509);

    overflow: hidden;
}

/* Efek cahaya background */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: rgba(225, 29, 72, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    top: -180px;
    left: -180px;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 450px;
    height: 450px;
    background: rgba(244, 63, 94, 0.12);
    filter: blur(120px);
    border-radius: 50%;
    bottom: -180px;
    right: -180px;
    pointer-events: none;
}

/* Card */
.loader-container {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 420px;
    padding: 45px 35px;

    text-align: center;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(225, 29, 72, 0.12);

    animation: cardIn 0.6s ease-out;
}

/* Spinner */
.loader {
    width: 65px;
    height: 65px;

    margin: 0 auto 25px;

    border: 4px solid rgba(255, 255, 255, 0.10);
    border-top-color: #fb7185;
    border-right-color: #e11d48;

    border-radius: 50%;

    box-shadow:
        0 0 15px rgba(225, 29, 72, 0.35),
        0 0 35px rgba(244, 63, 94, 0.15);

    animation: spin 0.75s linear infinite;
}

/* Judul */
h1 {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.3px;

    margin-bottom: 10px;

    background: linear-gradient(
        90deg,
        #fff,
        #fecdd3,
        #fb7185
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Deskripsi */
p {
    color: #fda4af;
    font-size: 14px;
    letter-spacing: 0.2px;
    margin-bottom: 27px;
}

/* Progress container */
.progress {
    width: 100%;
    height: 6px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.25);
}

/* Progress bar */
.progress-bar {
    width: 0;
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        #9f1239,
        #e11d48,
        #fb7185
    );

    box-shadow:
        0 0 10px rgba(244, 63, 94, 0.7),
        0 0 25px rgba(225, 29, 72, 0.4);

    animation: progress 1s linear forwards;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress animation */
@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Card masuk dengan smooth */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

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

/* Mobile */
@media (max-width: 480px) {
    .loader-container {
        padding: 38px 25px;
        border-radius: 20px;
    }

    .loader {
        width: 58px;
        height: 58px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 13px;
    }
}
