
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.right-side,
.left-side {
    flex: 1;
}

.right-side {
    gap: 30px;
    background-color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-side {
    background-color: #fff;

}

.left-side img {
    width: 100%;
    height: 100%;
}

.right-side .logo {
    position: relative;
    /* top: 20px; */
    width: 120px;
    height: 70px;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;

    color: #344054;

    padding: 0 5px;
}

.form-group input {
    width: 100%;
    height: 56px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.form-group input:focus {
    border-color: #1C91C8;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -8px;
    font-size: 12px;
    color: #1C91C8;
}

.forgot-password {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.forgot-password a {
    color: #1C91C8;
    text-decoration: none;
}

.login-button {
    width: 100%;
    height: 48px;
    background-color: #1C91C8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.signup-text {
    text-align: center;
    font-size: 14px;
}

.signup-text a {
    color: #1C91C8;
    text-decoration: none;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-side {
        display: none;
    }

    .right-side {
        width: 100%;
        padding: 20px;
    }

    h2 {
        font-size: 16px;
    }
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6c757d;
    height: 20px;
}

.password-toggle:hover {
    color: #333;
}


.toast {
    position: fixed;
    top: 25px;
    right: 30px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 1050;
    width: 300px;
    max-width: 100%;
}

.toast.active {
    transform: translateX(0%) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* .toast.error {
    background-color: #ffe5e5 !important;
}
 */
.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content .check {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    background-color: #28a745; /* Green for success */
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
}

.toast-content .check.error {
    background-color: #dc3545 !important; /* Red for error */
    color: #fff;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: #28a745;
}

.message .text.text-1 {
    font-weight: 600;
    color: #28a745;
}

.message .text.text-1.error {
    color: #dc3545; /* Make error title red */
}

.message .text.text-2.error {
    color: #dc3545; /* Make error message red */
}

.toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover {
    opacity: 1;
}

/* Progress bar */
.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #ddd;
}

.toast .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #28a745; /* Green for success */
}

/* Red progress bar for error */
.toast.error .progress:before {
 background-color: #dc3545 !important;
}

.toast .progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}



.submit-button {
    width: 100%;
    height: 48px;
    background-color: #1C91C8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}
