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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 950px;
    height: 590px;
    background-color: #fff;
    border-radius: 30px;
    margin: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.form-box {
    position: absolute;
    height: 100%;
    width: 50%;
    background: #fff;
    right: 0;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: 0.5s ease-in-out 1s, visibility 0s 1s;
}

.container.active .form-box {
    right: 50%;
}

.form-box.register {
    visibility: hidden;
}

.container.active .form-box.register {
    visibility: visible;
}

form {
    width: 100%;
}

.container h1 {
    font-size: 33px;
    margin: -10px 0;
}

.input-box {
    position: relative;
    margin: 12px 0;
}

.input-box input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #fff;
    border-radius: 8px;
    border: none;
    outline: 1px solid gainsboro;
    font-size: 14px;
    font-weight: 500;
}

.input-box input::placeholder {
    font-weight: 400;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #1E794A;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.password-toggle:hover {
    background: #f0faf8;
}

.password-toggle:focus-visible {
    outline: 2px solid #1E794A;
    outline-offset: 1px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle .eye-off-icon,
.password-toggle.is-visible .eye-icon {
    display: none;
}

.password-toggle.is-visible .eye-off-icon {
    display: block;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64181c;
}

.forget-link {
    margin: -15px 0 15px;
}

.forget-link a {
    font-size: 12.5px;
    color: #79373a;
    text-decoration: none;
}

.btn {
    width: 100%;
    height: 48px;
    background-color: #1E794A;
    border-radius: 20px;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.1);
    font-size: 14px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

.container p {
    font-size: 12.5px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    padding: 10px;
    border: 1px solid #79373a;
    border-radius: 8px;
    font-size: 22px;
    color: #79373a;
    text-decoration: none;
    margin: 0 8px;

}

.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 100%;
    left: -250%;
    border-radius: 100px;
    background-color: #1E794A;
    z-index: 2;
    transition: 1.4s ease-in-out;
}

.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    /* background-color: #64181c; */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: 0.5s ease-in-out;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1s;
}

.container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: 0.5s;
}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: 0.5s;
}

.container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1s;
}

.toggle-panel p {
    margin-bottom: 20px;
    text-align: center;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    box-shadow: none;
}

@media screen and (max-width: 650px) {
    .container {
        /* height: calc(100vh - 40px); */
        height: 150vh;
    }

    .form-box {
        /* background-color: purple; */
        width: 100%;
        height: 70%;
        bottom: 0;

    }

    .container.active .form-box {
        right: 0;
        bottom: 30%;
    }

    .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .toggle-panel {
        width: 100%;
        height: 30%;
    }

    .toggle-panel.toggle-left {
        top: 0;
    }

    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .container.active .toggle-panel.toggle-right {
        bottom: 0;
    }
}

@media screen and (max-width: 400px) {
    .form-box {
        padding: 20px;
    }

    .toggle-panel h1 {
        font-size: 30px;
    }
}


/* EXTRA */
.input-box{
    /* border: 2px solid blue; */
}
.label{
    display: block;
    text-align: left;
    font-weight: 600;
}

.label-forgot{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-forgot a{
    font-size: 12.5px;
    text-decoration: none;
    color: #1E794A;
}

.remember{
    display: flex;
    column-gap: 10px;
    font-size: 12.5px;
    margin-bottom: 10px;
}

/* Add this to your existing CSS */
.or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #555;
    font-size: 14px;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #aaa;
    margin: 0 10px;
}

.alt{
    display: flex;
    justify-content: center;
}
.alt img{
    width: 140px;
}

.form-inputs{
    display: flex;
    column-gap: 10px;
    margin: 0;
}

.terms{
    color: grey;
}

.input-box.error input {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    text-align: left;
}
