* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.login--container {
    position: relative;
    margin: 100px auto;
    background: #fff;
    box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    width: 1000px;
    max-width: 1000px;
    min-height: 480px;
    overflow: hidden;
}

.animateWidth {
    -webkit-animation: animateWidth 0.8s linear forwards;
    animation: animateWidth 0.8s linear forwards;
}

@-webkit-keyframes animateWidth {
    0% {
        width: 35%;
    }

    20% {
        width: 50%;
    }

    100% {
        width: 35%;
    }
}

@keyframes animateWidth {
    0% {
        width: 35%;
    }

    20% {
        width: 50%;
    }

    100% {
        width: 35%;
    }
}

.form__container {
    position: absolute;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    /*flex-direction: column;*/
    width: 65%;
    height: 100%;
    padding: 25px;
    text-align: center;
    background: #fff;
    transition: all 0.6s ease-in;
}

.go-login .form__container-login {
    left: 35%;
    opacity: 0;
}

.go-register .form__container-login {
    left: 0;
    opacity: 1;
    z-index: 0;
}

.go-login .form__container-register {
    left: 35%;
    opacity: 1;
    z-index: 0;
    justify-content: space-between;
    align-items: center;
    flex-direction: unset;
}
.btn-mobile {
    margin-top: 0;
    display: none;
}

.go-register .form__container-register {
    left: 0;
    opacity: 0;
}

.form {
    width: 100%;
    max-width: 350px;
}
.form-register {
    width: 100%;
    border-radius: 10px;
    padding: 8px 15px;
    border: solid 1px gray;
    margin: 0 10px;
}

.form__heading {
    font-size: 24px;
    margin-bottom: 15px;
}

.form__field {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    background: #f4f8f7;
    border: none;
    border-radius: 12px;
    background: light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important;
    border: 1px solid #dddfe2;
}

    .form__field:last-child {
        margin-bottom: 0;
    }

    .form__field::-webkit-input-placeholder {
        /* Chrome/Opera/Safari */
        text-transform: capitalize;
    }

    .form__field::-moz-placeholder {
        /* Firefox 19+ */
        text-transform: capitalize;
    }

    .form__field:-ms-input-placeholder {
        /* IE 10+ */
        text-transform: capitalize;
    }

    .form__field:-moz-placeholder {
        /* Firefox 18- */
        text-transform: capitalize;
    }

    .form__field:focus, .form__field:active {
        outline: 0;
    }

.form__text {
    margin-bottom: 15px;
    font-size: 14px;
}

.list {
    padding-left: 0;
}

.list__inline {
    margin-bottom: 15px;
}

    .list__inline .list__item {
        display: inline-block;
        margin-left: 5px;
        margin-right: 5px;
        border: 1px solid #333;
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }

    .list__inline .list__link {
        color: #333;
        text-decoration: none;
    }

    .list__inline .list__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

.overlay-container {
    position: absolute;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 35%;
    text-align: center;
    background: linear-gradient(45deg, #2980b9, #3498db);
    transition: all 0.8s cubic-bezier(0.67, 0.67, 0.34, 0.95);
}

.go-login .overlay-container {
    right: 65%;
}

.go-register .overlay-container {
    right: 0;
}

.overlay {
    padding: 25px;
    color: #fff;
    position: absolute;
    width: 100%;
}

.overlay__heading {
    font-size: 2rem;
    margin-bottom: 15px;
}

.overlay__desc {
    max-width: 230px;
    width: 230px;
    margin: auto;
    margin-bottom: 15px;
}

.overlay--left {
    opacity: 0;
    z-index: 99;
}

.go-login .overlay--left {
    z-index: 99;
    opacity: 1;
}

.go-register .overlay--left {
    opacity: 0;
    z-index: -1;
}

.overlay--right {
    opacity: 0;
    z-index: 99;
}

.go-login .overlay--right {
    opacity: 0;
    z-index: -1;
}

.go-register .overlay--right {
    z-index: 99;
    opacity: 1;
}

.btn-login {
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn--main {
    background: linear-gradient(45deg, #2980b9, #3498db);
    color: #fff;
}

.btn--main-outline {
    border: 2px solid linear-gradient(45deg, #2980b9, #3498db);
    color: #2980b9;
}

.btn-login:hover {
    cursor: pointer;
}

.btn-login:focus, .btn-login:active {
    outline: 0;
}


.switch {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

    .switch > span {
        position: absolute;
        top: 14px;
        pointer-events: none;
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: bold;
        font-size: 12px;
        text-transform: uppercase;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
        width: 50%;
        text-align: center;
    }

input.check-toggle-round-flat:checked ~ .off {
    color: #050505;
}

input.check-toggle-round-flat:checked ~ .on {
    color: #fff;
}

.switch > span.on {
    left: 0;
    padding-left: 8px;
    color: #050505;
}

.switch > span.off {
    right: 0;
    padding-right: 4px;
    color: #fff;
}

.check-toggle {
    position: absolute;
    margin-left: -9999px;
    visibility: hidden;
}

    .check-toggle + label {
        display: block;
        position: relative;
        cursor: pointer;
        outline: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

input.check-toggle-round-flat + label {
    padding: 2px;
    width: 97px;
    height: 35px;
    background: linear-gradient(45deg, #2980b9, #3498db);
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    border-radius: 60px;
}

    input.check-toggle-round-flat + label:before, input.check-toggle-round-flat + label:after {
        display: block;
        position: absolute;
        content: "";
    }

    input.check-toggle-round-flat + label:before {
        top: 2px;
        left: 2px;
        bottom: 2px;
        right: 2px;
        background: linear-gradient(45deg, #2980b9, #3498db);
        -webkit- -moz-border-radius: 60px;
        -ms-border-radius: 60px;
        -o-border-radius: 60px;
        border-radius: 60px;
    }

    input.check-toggle-round-flat + label:after {
        top: 4px;
        left: 4px;
        bottom: 4px;
        width: 48px;
        background-color: #fff;
        -webkit-border-radius: 52px;
        -moz-border-radius: 52px;
        -ms-border-radius: 52px;
        -o-border-radius: 52px;
        border-radius: 52px;
        -webkit-transition: margin 0.2s;
        -moz-transition: margin 0.2s;
        -o-transition: margin 0.2s;
        transition: margin 0.2s;
    }

input.check-toggle-round-flat:checked + label {
}

input.check-toggle-round-flat:checked + label:after {
    margin-left: 44px;
}


/* --- Mobile Responsiveness Starts --- */
@media (max-width: 768px) {

    .login--container {
        /* Remove fixed width for mobile */
        margin: 20px 10px;
        width: calc(100% - 20px);
        border-radius: 18px;
        min-height: 70vh; /* Allow it to take up more vertical space */
        box-shadow: none; /* Optional: Remove shadow for cleaner mobile look */
    }

    /* 1. Form Containers: Full width and stacked */
    .form__container {
        width: 100%; /* Take full width on mobile */
        height: auto; /* Auto height to fit content */
        position: relative; /* Change from absolute to relative to allow stacking */
        min-height: 400px; /* Ensure forms have enough height */
        padding: 40px 25px; /* Increase vertical padding */
        transition: none; /* Disable complex absolute transitions for mobile */
    }

    
    /* 2. Overlay Container: Full width and stacked */
    .overlay-container {
        display:none;
        width: 100%; /* Take full width on mobile */
        height: 250px; /* Fixed height for the overlay on mobile */
        position: relative; /* Change from absolute to relative to allow stacking */
        right: 0 !important; /* Override desktop positioning */
        transition: none; /* Disable complex absolute transitions for mobile */
    }

    /* 3. Handling the State Changes (Login/Register) on Mobile */

    /* By default, hide one form and show the other. The overlay will be used
       to switch between them, making it a simple vertical scroll/hide-show. */

    .go-register .form__container-login {
        /* When 'go-register' is active, show login form */
        left: 0;
        opacity: 1;
        z-index: 0;
        display: flex; /* Ensure it's visible */
    }

    .go-register .form__container-register {
        /* When 'go-register' is active, hide register form below */
        left: 0;
        opacity: 0;
        position: absolute; /* Use absolute to cover/hide the register form */
        top: 0;
        display: none; /* Hide it completely to prevent interaction */
    }

    .go-login .form__container-login {
        /* When 'go-login' is active, hide login form */
        left: 0;
        opacity: 0;
        position: absolute;
        top: 0;
        display: none;
    }

    .go-login .form__container-register {
        /* When 'go-login' is active, show register form */
        left: 0;
        opacity: 1;
        z-index: 0;
        display: block;
        padding: 40px 10px;
    }
    .btn-mobile {
        margin: 70px auto 0 auto;
        display: block;
    }
    .form-register {
        margin: 0 0 20px 0;
    }
    /* 4. Overlay Content: Full width and centered */
    .overlay {
        position: relative; /* Relative positioning within its container */
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        padding: 40px 25px;
    }

    .overlay__desc {
        max-width: 100%; /* Allow description to take full width */
        width: auto;
    }

    /* 5. Mobile Overlay Specifics: Show/Hide the correct overlay text/button */
    .overlay--left {
        /* Overlay text for Sign In state (prompts for Sign Up) */
        opacity: 0;
        z-index: -1;
        display: none; /* Hide the 'Welcome Back' overlay content when in 'go-register' state */
    }

    .go-login .overlay--left {
        opacity: 1;
        z-index: 99;
        display: block; /* Show 'Welcome Back' overlay content when in 'go-login' state */
    }

    .overlay--right {
        /* Overlay text for Sign Up state (prompts for Sign In) */
        opacity: 1;
        z-index: 99;
        display: block; /* Show 'Hello Friend' overlay content when in 'go-register' state */
    }

    .go-login .overlay--right {
        opacity: 0;
        z-index: -1;
        display: none; /* Hide the 'Hello Friend' overlay content when in 'go-login' state */
    }
}
/* --- Mobile Responsiveness Ends --- */