* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-image: url(../images/login-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

body::after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #7cc28a;
    background: linear-gradient(290deg, rgb(113 116 114 / 81%) 10%, rgba(19, 30, 105, 0.26) 88%);
}

.back-home a {
    color: #004A80 !important;
    margin: auto 0;
    font-size: 15px;
    font-weight: 600;
}

.back-home i {
    color: #fff;
    rotate: 270deg;
}

.log-back {
    display: flex;
    justify-content: space-between;
    flex-direction: column-reverse;
}

.login-register {
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 25px;
}

.form-container {
    position: relative;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.sign-up,
.log-in {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-up {
    width: 100%;
    opacity: 0;
    z-index: 1;
}

.log-in {
    width: 50%;
    z-index: 2;
}

.sign-form {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.sign-form h1 {
    font-weight: bold;
    margin: 0;
    text-transform: capitalize;
    margin-bottom: 30px;
}

.frm-inpt {
    background-color: #eee;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border: none;
    border-radius: 50px;
    outline: none;
    box-shadow: 2px 3px 6px -2px #000;
}

.sign-btn {
    color: #000000;
    background-color: #c0ff78;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 55px;
    margin: 20px;
    border-radius: 20px;
    border: 1px solid #003566;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    transition: all .3s ease-in;
}

.signup-btn {
    margin: 10px 0;
}

.sign-btn:hover {
    background-color: #6cc053;
    color: #000;
}

.sign-btn:active {
    transform: scale(0.90);
}

#signin,
#signup {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    transition: all .3s ease-in;
}

#signin:hover,
#signup:hover {
    color: #000000;
    border: 2px solid #ffffff;
    background-color: #fff;
}

.form-container.right-panel-active .log-in {
    transform: translateX(100%);
}

.form-container.right-panel-active .sign-up {
    opacity: 1;
    z-index: 5;
    transform: translateX(100%);
    width: 50%;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.form-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.form-overlay {
   background: linear-gradient(135deg, rgb(237 231 200 / 80%) 0%, rgb(213 208 179) 10%, rgb(232 236 197) 20%, rgb(165 205 134) 33%, rgb(105 151 100) 50%, rgb(179 178 177) 68%, rgb(155 153 129) 80%, rgb(243 233 180) 91%, rgb(191 170 156 / 80%) 100%);
    position: absolute;
    left: -100%;
    width: 200%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.form-container.right-panel-active .form-overlay {
    transform: translateX(50%);
}

.overlay-left,
.overlay-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-left img {
    width: 50%;
}

.overlay-right img {
    width: 50%;
}

.form-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.form-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.form-overlay h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-transform: capitalize;
}

.sign-form img {
    margin: 20px 0;
    width: 100%;
}

.otp-btn {
    color: #fff;
    background-color: #003566;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 55px;
    margin: 20px;
    border-radius: 20px;
    border: 1px solid #003566;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    transition: all .3s ease-in;
}

.otp-btn:hover {
    background-color: #6cc053;
    color: #000;
}

@media (max-width: 575px) {
    /* .login-register {
        display: block;
    } */

    .sign-form img {
        margin: 20px 0;
        width: 20%;
    }

    .form-container.right-panel-active .sign-up {
        transform: translateY(0);
        width: 50%;
        width: 100%;
        opacity: 1 !important;
        z-index: 3 !important;
    }

    .form-container.right-panel-active .log-in {
        transform: translateY(63%);
    }

    .form-container {
        min-height: 630px;
        margin: 15px 0;
    }

    .overlay-right {
        right: 0;
        transform: translateY(-32%);
        top: 40%;
    }

    .overlay-left {
        top: 10%;
    }

    .form-overlay {
        transform: translateY(0%);
    }

    .otp-panel.active {
        transform: translateX(0);
        z-index: 5;
    }

    .sign-form {
        display: block;
    }

    .log-in {
        width: 100%;
    }

    .overlay-left,
    .overlay-right {
        display: block;
    }

    .form-container.right-panel-active .form-overlay {
        transform: translateX(50%);
        top: 0%;
    }

    .form-container.right-panel-active .overlay-container {
        transform: translateX(0);
    }

    .overlay-container {
        left: 0;
        width: 100%;
        top: 68%;
    }

    .overlay-left img {
        margin-top: 10%;
    }
}


/* Additional styles for login-new.css */

/* Error and success message styling */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff5252;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}

/* Form validation styles */
.textbox-background-error {
    background-color: #ffe6e6 !important;
    border: 1px solid #ff0000 !important;
}

.textbox-background-ok {
    background-color: #eeffee !important;
    border: 1px solid #00aa00 !important;
}

/* Password field container */
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #003566;
}

/* Back to login button */
.back-to-login {
    color: #003566;
    background-color: transparent;
    font-size: 12px;
    font-weight: bold;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-login:hover {
    color: #6cc053;
}

/* Generic button styles */
.btn {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sign-form {
        padding: 0 25px;
    }

    .sign-form h1 {
        margin-bottom: 0px;
    }
}