*,
*:before,
*:after {
    box-sizing: border-box;
    margin    : 0;
    padding   : 0;
}

body {
/*    font-family: "Open Sans", Helvetica, Arial, sans-serif;*/
    background : #ededed !important;
}

form div.required label.control-label:after {
    content: " * ";
    color  : red;
}

form div.required label:after {
    content: " * ";
    color  : red;
}

.invalid-feedback {
    color: red;
}

.help-block {
    color: red;
}

input,
button,
a {
    border     : none;
    outline    : none;
    background : none;
/*    font-family: "Open Sans", Helvetica, Arial, sans-serif;*/
}

.body {
    margin : auto;
    padding: 50px;
    height : auto;
}

.cont {
    overflow  : hidden;
    position  : relative;
    width     : 900px;
    height    : 550px;
    margin    : 0 auto 100px;
    background: #fff;
    border: 0 solid #f6f6f6;
    border-radius: .25rem;
}

.form {
    position  : relative;
    width     : 640px;
    height    : 100%;
    transition: transform 1.2s ease-in-out;
    padding   : 50px 0 0;
}

.sign-in {
    padding: 50px 150px 0;
}

.sign-up {
    padding: 50px 20px 0;
}

.sign-up-div-btn {
    padding: 10px 150px 0;
}

.sub-cont {
    overflow    : hidden;
    position    : absolute;
    left        : 640px;
    top         : 0;
    width       : 900px;
    height      : 100%;
    padding-left: 260px;
    background  : #fff;
    transition  : transform 1.2s ease-in-out;
}

.cont.s--signup .sub-cont {
    transform: translate3d(-640px, 0, 0);
}

button,
a {
    display      : block;
    margin       : 0 auto;
    height       : 36px;
    border-radius: 30px;
    color        : #fff;
    font-size    : 15px;
    cursor       : pointer;
}

.img {
    overflow   : hidden;
    z-index    : 2;
    position   : absolute;
    left       : 0;
    top        : 0;
    width      : 260px;
    height     : 100%;
    padding-top: 360px;
}

.img:before {
    content         : "";
    position        : absolute;
    right           : 0;
    top             : 0;
    width           : 900px;
    height          : 100%;
    background-image: url("../images/hrms_bg.jpeg");
    background-size : cover;
    transition      : transform 1.2s ease-in-out;
}

.img:after {
    content   : "";
    position  : absolute;
    left      : 0;
    top       : 0;
    width     : 100%;
    height    : 100%;
    background: rgba(0, 0, 0, 0.6);
}

.cont.s--signup .img:before {
    transform: translate3d(640px, 0, 0);
}

.img__text {
    z-index   : 2;
    position  : absolute;
    left      : 0;
    top       : 50px;
    width     : 100%;
    padding   : 0 20px;
    text-align: center;
    color     : #fff;
    transition: transform 1.2s ease-in-out;
}

.img__text h2 {
    margin-bottom: 10px;
    font-weight  : normal;
}

.img__text p {
    font-size  : 14px;
    line-height: 1.5;
}

.cont.s--signup .img__text.m--up {
    transform: translateX(520px);
}

.img__text.m--in {
    transform: translateX(-520px);
}

.cont.s--signup .img__text.m--in {
    transform: translateX(0);
}

.img__btn {
    overflow      : hidden;
    z-index       : 2;
    position      : relative;
    width         : 100px;
    height        : 36px;
    margin        : 0 auto;
    background    : transparent;
    color         : #fff;
    text-transform: uppercase;
    font-size     : 15px;
    cursor        : pointer;
}

.img__btn:after {
    content      : "";
    z-index      : 2;
    position     : absolute;
    left         : 0;
    top          : 0;
    width        : 100%;
    height       : 100%;
    border       : 2px solid #fff;
    border-radius: 30px;
}

.img__btn span {
    position       : absolute;
    left           : 0;
    top            : 0;
    display        : flex;
    justify-content: center;
    align-items    : center;
    width          : 100%;
    height         : 100%;
    transition     : transform 1.2s;
}

.img__btn span.m--in {
    transform: translateY(-72px);
}

.cont.s--signup .img__btn span.m--in {
    transform: translateY(0);
}

.cont.s--signup .img__btn span.m--up {
    transform: translateY(72px);
}

h2 {
    width     : 100%;
    font-size : 26px;
    text-align: center;
}

label span {
    font-size     : 12px;
    color         : #cfcfcf;
    text-transform: uppercase;
}

.forgot-pass {
    margin-top: 15px;
    text-align: center;
    font-size : 12px;
    color     : #cfcfcf;
}

.submit {
    width         : 100%;
    margin-bottom : 20px;
    background    : #cd1348;
    border-radius : 25px;
    text-transform: uppercase;
}

.fb-btn {
    border     : 2px solid #d3dae9;
    color      : #8fa1c7;
    text-align : center;
    padding-top: 4px;
}

.fb-btn span {
    font-weight: bold;
    color      : #455a81;
}

.sign-in {
    transition-timing-function: ease-out;
}

.cont.s--signup .sign-in {
    transition-timing-function: ease-in-out;
    transition-duration       : 1.2s;
    transform                 : translate3d(640px, 0, 0);
}

.sign-up {
    transform: translate3d(-900px, 0, 0);
}

.cont.s--signup .sign-up {
    transform: translate3d(0, 0, 0);
}

.icon-link {
    position: absolute;
    left    : 5px;
    bottom  : 5px;
    width   : 32px;
}

.icon-link img {
    width         : 100%;
    vertical-align: top;
}

.auth-div {
    display        : flex;
    justify-content: center;
}

.auth-link {
    border         : 1px solid #dedede;
    border-radius  : 10px;
    width          : 50px;
    height         : 50px;
    position       : relative;
    justify-content: center;
}

.auth-icon {
    width   : 30px;
    margin  : auto;
    position: absolute;
    top     : 20%;
    left    : 20%;
}

.invalid-feedback {
    color: red;
}

.auth-page-wrapper .auth-page-content {
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: /*initial;
    height: auto;*/
}

.auth-page-wrapper .footer {
  right: 0;
  background-color: transparent;
  color: var(--vz-body-color);
}

.auth-bg-cover {
  background: linear-gradient(45deg, var(--vz-primary) 50%, var(--vz-success));
}

.auth-bg-cover > .bg-overlay {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9)), 
                    url("../images/bg-login.png");
  background-position: center;
  background-size: cover;
  opacity: 1; 
}

.auth-bg-cover .footer {
  color: rgba(255, 255, 255, 0.5);
}

.bg-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  bottom: 0;
  right: 0;
  top: 0;
  opacity: 0.7;
  background-color: #000;
}

.mobile-toggle {
    display: none;
}


@media only screen and (max-width: 768px) {

    /* Original code */
    /*.cont {
        overflow  : hidden;
        position  : relative;
        width     : 100%;
        height    : auto;
        margin    : 0 auto 100px;
        background: #fff;
    }

    .form {
        position: relative;
        width   : 100%;
        height  : 100%;
        padding : 50px 20px 50px;
    }

    .sub-cont {
        display: none;
    } 

    .sign-in {
        padding: none;
    } */

    .mobile-only .row.justify-content-center {
        display: flex;
        justify-content: center;
    }

    .mobile-only .col-md-8,
    .mobile-only .col-lg-6,
    .mobile-only .col-xl-5 {
        flex: 0 0 100%; /* Full width on mobile */
        max-width: 100%; /* Full width on mobile */
    }

    .mobile-only .card.mt-4 {
        margin-top: 1.5rem; /* Adjust as needed */
    }
    /* mobile view */
    .cont {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0 auto;
        background: #fff;
/*        max-width: 720px;*/
        overflow: visible; /* Changed from hidden to allow content to show */
    }
    
    .footer {
        position: relative;
        margin-top: 20px;
    }

    .form {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 30px 20px 30px;
    }

    /* Show both forms but initially hide signup */
    .sub-cont {
        display: block;
        position: relative;
        left: 640px;
        top: 0;
        width: 100%;
        height: auto;
        padding-left: 0;
        transform: none;
        overflow: hidden;
    }

    .cont.s--signup .sub-cont {
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* Hide the image section for mobile */
    .img {
        display: none;
    }
    
    /* Make both forms fit in the mobile view */
    .sign-in, .sign-up {
        padding: 15px;
    }
    
    /* Initially hide sign-up form */
    .sign-up {
        display: none;
    }
    
    /* For the s--signup state, hide sign-in and show sign-up */
    .cont.s--signup .sign-in {
        display: none;
    }
    
    .cont.s--signup .sign-up {
        display: block;
    }

    .sign-up-div-btn {
        padding: 0px 0px 0;
    }

    /* Add mobile toggle button */
    .mobile-toggle {
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .mobile-toggle a {
        color: #cd1348;
        text-decoration: underline;
        cursor: pointer;
        display: inline;
    }

    h2 {
        padding: 15px 15px;
    }

}

@media (max-width: 576px) {
    /* Inherit the same logic for smaller screens */
    .cont {
        max-width: 320px;
    }
}