* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f5f7;
}

.container {
    position: relative;
    width: 900px;
    height: 500px;
    background-color: #fff;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
}

.form-container {
    display: none;
}
.form-container.active {
    display: block;
    position: absolute;
    width: 50%;
    top: 0;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

/* Adjust positioning based on panel status */
.login-container {
    left: 0;
}

.sign-up-container {
    left: 50%;
}


.container.right-panel-active .login-container {
    transform: translateX(100%);
}
.container.right-panel-active .sign-up-container {
    transform: translateX(-100%);
}

form {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

h1 {
    font-weight: bold;
    margin-bottom: 20px;
}

input {
    margin: 8px 0;
    padding: 12px 15px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #43a047;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #ff4b2b;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    position: relative;
    left: -100%;
    width: 200%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    width: 50%;
    height: 100%;
    color: #fff;
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.ghost {
    background-color: transparent;
    border: 1px solid #fff;
    padding: 12px 30px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ghost:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f5f7;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 800px;
    max-width: 100%;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 0 50px;
}

.login-container {
    left: 0;
    opacity: 1;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .login-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 2;
}


.password-container {
    position: relative;
    margin-bottom: 15px; /* Space between input fields */
}

.password-container input {
    width: 100%;
    padding-right: 30px; /* Space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px; /* Position the icon inside the input */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer; /* Change cursor to pointer on hover */
    font-size: 18px; /* Size of the icon */
}



