* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: #f1f5f4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.auth-container {
    width: 92%;
     max-width: 1100px;
    height: 550px;
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out;
}
.login-form {
    left: 0;
     z-index: 2;
}
.register-form {
    right: 0;transform: translateX(100%);
     z-index: 1;
}
.form-content {
    width: 75%;
    max-width: 400px;
    text-align: center;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}
.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}
.form-content h1 {
    color: #4158c9;
    font-size: 30px;
    margin-bottom: 22px;
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.social-buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    transition: 0.2s;
}
.social-buttons button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}
.or-text {
    color: #999;
    font-size: 13px;
    margin-bottom: 18px;
}
.input-box {
    width: 100%;
    height: 43px;
    background: #f3f8f7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}
.input-box i {
    color: #aaa;
    margin-right: 10px;
    font-size: 14px;
}
.input-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}
.input-box input::placeholder {
    color: #999;
}
.forgot-password {
    display: block;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    margin: 18px 0 25px;
}
.forgot-password:hover {
    text-decoration: underline;
}
.main-button {
    width: 165px;
    height: 43px;
    border: none;
    border-radius: 25px;
    background: #4158c9;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}
.main-button:hover {
    background: #3448ad;
}
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    transition: transform 1s ease-in-out;
}
.overlay {
    position: relative;
    width: 200%;
    height: 100%;
    left: -100%;
    background: #4158c9;
    color: white;
    display: flex;
   transition: transform 1s ease-in-out;
}
.overlay-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.overlay-panel h1 {
    font-size: 32px;
    margin-bottom: 20px;
}
.overlay-panel p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}
.outline-button {
    width: 165px;
    height: 43px;
    border-radius: 25px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
}
.outline-button:hover {
    background: white;
    color: #4158c9;
}
.login-form {
    animation: loginSlide 8s infinite;
}
.register-form {
    animation: registerSlide 8s infinite;
}
.overlay-container {
    animation: overlayMove 8s infinite;
}
.overlay {
    animation: overlayInnerMove 8s infinite;
}

@keyframes loginSlide {
    0% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-100%);
    }
    85% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}
@keyframes registerSlide {

    0% {
        transform: translateX(100%);
    }
    35% {
        transform: translateX(100%);
    }
    50% {
        transform: translateX(0);
    }
    85% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes overlayMove {
    0% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-100%);
    }
    85% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}
@keyframes overlayInnerMove {
    0% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50%);
    }
    85% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(0);
    }
}
.overlay::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    top: -100px;
    right: -100px;
}
.overlay::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -80px;
    left: -60px;
}
@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    .auth-container {
        height: 650px;

        width: 95%;
    }
    .form-container {
        width: 100%;
    }
    .form-content {
        width: 85%;
    }
    .overlay-container {
        display: none;
    }

}