/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #007bff;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #fff;
    --shadow: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, var(--primary), var(--dark));
}

.container {
    max-width: 400px;
}

.card {
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 10px 30px var(--shadow);
    animation: fadeIn 1s ease-in-out;
}

h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

.form-control {
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid var(--primary);
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--dark);
    box-shadow: 0 0 10px var(--primary);
}

button {
    border-radius: 30px;
    padding: 10px;
    font-size: 18px;
    transition: 0.3s;
}

button:hover {
    background: var(--dark);
    color: var(--white);
}

/* Popup */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow);
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 1000;
}

.popup.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading Animation */
/* Reset beberapa style dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style untuk animasi loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);  /* Background semi-transparan */
    display: none;  /* Awalnya disembunyikan */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* Dot loading animation */
.dot {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #4CAF50;  /* Hijau */
    animation: dotAnimation 1.4s infinite ease-in-out both;
}

/* Delay animasi untuk tiap dot */
.dot:nth-child(1) {
    animation-delay: 0s;
}
.dot:nth-child(2) {
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Keyframes untuk animasi titik */
@keyframes dotAnimation {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

/* Teks loading */
.loading-text {
    margin-top: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.loading-text p {
    font-size: 18px;
    margin: 0;
}

.loading-text strong {
    font-family: 'Times New Roman', serif;
    color: #4CAF50;  /* Hijau */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
