body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    /* Mencegah scroll saat animasi */
}

.background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../img/bg-top-app.png') no-repeat top center,
        url('../img/bg-bottom-app.png') no-repeat bottom center;
    background-size: contain;
    background-color: #0d388f !important;
    opacity: 0;
    /* Mulai dengan transparan */
    animation: fadeIn 1s forwards;
    /* Animasi fade in */
}

@keyframes fadeIn {
    to {
        opacity: 1;
        /* Menjadi sepenuhnya terlihat */
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.captcha-container {
    transform: scale(0.7);
    /* Mengubah skala captcha */
    transform-origin: top left;
    /* Mengatur titik awal transformasi */
}


.form-container {
    position: relative;
    background: linear-gradient(180deg,
            #ffffff 0%,
            #f9fbff 100%);
    border-radius: 18px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 40px 35px 35px;
    width: 100%;
    max-width: 500px;
    z-index: 1;
    transform: scale(0.5);
    animation: bounceIn 0.6s forwards;
}



@keyframes bounceIn {
    0% {
        transform: scale(0.5) translateY(0);
        /* Mulai dengan skala kecil */
        opacity: 0;
        /* Transparan pada awal */
    }

    60% {
        transform: scale(1.05) translateY(-15px);
        /* Sedikit lebih besar dan naik */
        opacity: 1;
        /* Muncul */
    }

    80% {
        transform: scale(0.95) translateY(5px);
        /* Sedikit lebih kecil dan turun */
    }

    100% {
        transform: scale(1) translateY(0);
        /* Kembali ke skala normal */
    }
}

/* Fade-in effect */
.fade-in {
    opacity: 0;
    /* Mulai dengan transparan */
    transition: opacity 1s ease-in-out;
    /* Waktu transisi untuk efek fade */
}

.fade-in.show {
    opacity: 1;
    /* Menjadi terlihat */
}

/* Circle styling */
.logo-circle {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    padding: 12px;
    /* ✅ JARAK LOGO KE CIRCLE */
    border-radius: 50%;
    border: 5px solid #cccccc;
    background-color: #0d388f;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* 🔥 WAJIB */
    z-index: 2;
}


.logo-circle img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 768px) {
    .logo-circle img {
        width: 80%;
        height: 80%;
        object-fit: contain;
    }
}



.form-control-solid {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.btn-primary {
    background-color: #0275d8;
    border-color: #01549b;
}

.indicator-progress {
    display: none;
}

.wait-login {
    display: none;
}

/* Add fallback background color */
.fallback-bg {
    background-color: #f5f5f5;
}

.text-center h5 {
    font-size: 1.4rem;
    /* Ukuran font default */
    line-height: 1.4;
    margin: 0;
    max-width: 100%;
    /* Pastikan teks tidak meluap dari kontainer */
    white-space: normal;
    /* Pastikan teks dipecah jika benar-benar diperlukan */
}

.text-center .font-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: -15px;
}

@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 15px;
        max-width: 100%;
    }

    .form-container h5 {
        font-size: 1.2rem;
    }

    .form-container .form-control {
        font-size: 0.9rem;
        padding: 10px;
    }

    .form-container .btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .form-container .logo-circle {
        width: 100px;
        height: 100px;
        top: -40px;
    }

    .form-container .logo-circle img {
        max-width: 70%;
        max-height: 70%;
    }

    .text-center h5 {
        font-size: 1.2rem;
        /* Ukuran font lebih kecil di layar kecil */
    }

    .text-center .font-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .text-center h5 {
        font-size: 1rem;
        /* Lebih kecil untuk perangkat dengan layar sangat kecil */
    }

    .text-center .font-subtitle {
        font-size: 0.9rem;
    }
}

.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: 0.5;
}

.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 0.5em;
    line-height: 1.5em;
    background-color: #fcfcfa;
}