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

.background-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("../images/admin/bg-top.png") no-repeat top center,
        url("../images/admin/bg-bottom.png") no-repeat bottom center;
    background-size: contain;
    background-color: #ffffff;
    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-color: #ffffff;
    height: 595px;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
    padding: 36px;
    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;
    border-radius: 50%;
    border: 5px solid #cfcfcf;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.logo-circle img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 50%;
}

.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;
}
