/* Font dan Layout Umum */
body {
    background-color: #dcdcdc;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.app-container {
    width: 480px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in;
}

.header {
    background: linear-gradient(to bottom right, #0e6251, #138d75);
    color: white;
    padding-bottom: 1rem;
}

.form-container {
    padding: 2rem 1.5rem;
    animation: slideUp 1s ease-out;
}

/* Efek Fokus pada Input */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: scale(1.02);
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Tombol */
.btn-success {
    background-color: #28a745;
    border: none;
    transition: all 0.3s ease-in-out;
}

.btn-success:hover {
    transform: scale(1.02);
    background-color: #218838;
}

/* Carousel */
.carousel-inner img {
    object-fit: cover;
    height: 200px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0e6251;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


.spinner-border {
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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