@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, var(--bs-white), var(--bs-gray-300)) !important;
}

.custom-auth-container {
    position: relative;
    width: 850px;
    height: 550px;
    background: var(--bs-white);
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    margin: 20px;
    overflow: hidden;
}

.custom-auth-form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bs-white);
    display: flex;
    color: var(--bs-gray-500);
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
    overflow: auto;
    scrollbar-width: none;
    /* Firefox: hilangkan scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge: hilangkan scrollbar */
}

.custom-auth-form-box::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari: hilangkan scrollbar */
}

.custom-auth-container.active .custom-auth-form-box {
    right: 50%;
}

.custom-auth-form-box.register {
    visibility: hidden;
}

.custom-auth-container.active .custom-auth-form-box.register {
    visibility: visible;
}

form {
    width: 100%;
}

.custom-auth-container h3 {
    color : var(--bs-white);
    font-size: 20px;
    margin: -10px 0;
}

.custom-auth-container h1 {
    font-size: 33px;
}

.custom-auth-input-box {
    position: relative;
    margin: 20px 0;
}

.custom-auth-input-box input {
    width: 100%;
    padding: 13px 50px 13px 40px;
    background: #eee;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--bs-gray-500);
    font-weight: 500;
}

.custom-auth-input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

.custom-auth-input-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}

.custom-auth-forgot-link {
    margin: -15px 0 15px;
}

.custom-auth-forgot-link a {
    font-size: 14.5px;
    color: var(--bs-gray-500);
    text-decoration: none;
}

.custom-auth-btn {
    width: 100%;
    height: 48px;
    background: var(--bs-primary);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--bs-white);
    font-weight: 600;
}

.custom-auth-container p {
    font-size: 14.5px;
    max-width : 350px;
    margin: 15px 0;
}

.custom-auth-social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap : wrap;
}

.custom-auth-social-icons a {
    display: inline-flex;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 24px;
    color: var(--bs-gray-500);
    text-decoration: none;
    margin: 4px 8px;
}


.custom-auth-toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.custom-auth-toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: linear-gradient(to right, var(--bs-primary), var(--bs-sub-primary));
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}


.custom-auth-container.active .custom-auth-toggle-box::before {
    left: 50%;
}
.logo-auth{
    margin-bottom : 30px;
}
.custom-auth-toggle-panel {
    padding-top : 40px;
    padding-bottom : 20px;
    position: absolute;
    width: 50%;
    height: 100%;
    /* background: seagreen; */
    color: var(--bs-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: .6s ease-in-out;
}

.custom-auth-toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.custom-auth-container.active .custom-auth-toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;
}

.custom-auth-toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.custom-auth-container.active .custom-auth-toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}

.custom-auth-toggle-panel p {
    font-size: 12px;
    margin-bottom: 20px;
}

.custom-auth-toggle-panel .custom-auth-btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid var(--bs-white);
    box-shadow: none;
}

.fv-plugins-message-container.invalid-feedback{
    text-align: start !important;
}
@media screen and (max-width : 850px) {
    .custom-auth-container {
        height: 100vh;
        width: 100vw;
        margin: 0;
        border-radius: 0;
    }

    .custom-auth-form-box {
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .custom-auth-container.active .custom-auth-form-box {
        right: 0;
        bottom: 30%;
    }

    .custom-auth-toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .custom-auth-container.active .custom-auth-toggle-box::before {
        top: 70%;
        left: 0;
    }

    .custom-auth-toggle-panel {
        width: 100%;
        height: 30%;
    }

    .custom-auth-toggle-panel .logo-auth{
        display: none !important;
    }
    .custom-auth-toggle-panel.toggle-left {
        top: 0;
    }

    .custom-auth-container.active .custom-auth-toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .custom-auth-toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .custom-auth-container.active .custom-auth-toggle-panel.toggle-right {
        bottom: 0;
    }
}


@media screen and (max-width : 400px) {
    .custom-auth-form-box {
        padding: 20px;
    }

    .custom-auth-toggle-panel h3 {
        font-size: 18px;
    }

    .custom-auth-toggle-panel h1 {
        font-size: 28px;
    }
}