/* Unique Popup Overlay */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease-in-out;
    z-index: 9999;
    
}

.custom-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.custom-popup-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    width: 768px;
    max-width: 90%;
    min-height: 480px;
    padding: 20px;
    position: relative;
}

.custom-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.custom-form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.custom-sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.custom-popup-container.right-panel-active .custom-sign-in-container {
    transform: translateX(100%);
}

.custom-sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.custom-popup-container.right-panel-active .custom-sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: custom-show 0.6s;
}

@keyframes custom-show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.custom-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.custom-popup-container.right-panel-active .custom-overlay-container {
    transform: translateX(-100%);
}

.custom-overlay {
    background: #3c97bf;
    background: -webkit-linear-gradient(to right, #009CD9, #3c97bf);
    background: linear-gradient(to right, #009CD9, #3c97bf);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.custom-popup-container.right-panel-active .custom-overlay {
    transform: translateX(50%);
}

.custom-overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    line-height: 20px;
}

.custom-overlay-left {
    transform: translateX(-20%);
}

.custom-popup-container.right-panel-active .custom-overlay-left {
    transform: translateX(0);
}

.custom-overlay-right {
    right: 0;
    transform: translateX(0);
}

.custom-popup-container.right-panel-active .custom-overlay-right {
    transform: translateX(20%);
}

.custom-social-container {
    margin: 20px 0;
}

.custom-social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

button {
    border-radius: 20px;
    border: 1px solid #009CD9;
    background-color: #009CD9;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

.form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
    gap: 2px;
}

.input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    color: #000000;
    cursor: pointer;
    z-index: 200; /* Ensure it appears above other content */
}

.close-btn:hover {
    color: rgb(61, 61, 61); /* Red color when hovered */
}
