@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


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


body {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    padding: 20px;

    background: #f3e4d2;
}


.container {
    position: relative;

    width: 850px;
    height: 550px;

    background: #fffaf5;

    border-radius: 30px;

    box-shadow: 0 0 30px rgba(105, 73, 48, 0.18);

    overflow: hidden;
}


/* =========================
   FORM BOX
========================= */

.form-box {
    position: absolute;

    right: 0;

    width: 50%;
    height: 100%;

    background: #fffaf5;

    display: flex;
    align-items: center;

    color: #5b4030;

    text-align: center;

    padding: 40px;

    z-index: 1;

    transition: 0.6s ease-in-out 1.2s;
}


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


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


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


.form-box form {
    width: 100%;
}


/* =========================
   HEADING
========================= */

h1 {
    font-size: 36px;

    margin-bottom: 25px;

    color: #5b4030;
}


/* =========================
   INPUT
========================= */

.input-box {
    position: relative;

    margin: 20px 0;
}


.input-box input {
    width: 100%;

    padding: 13px 45px 13px 20px;

    background: #f2e3d3;

    border: 2px solid transparent;

    outline: none;

    border-radius: 10px;

    font-size: 15px;

    color: #5b4030;

    transition: 0.3s;
}


.input-box input:focus {
    border-color: #a97955;

    background: #fffaf5;
}


.input-box input::placeholder {
    color: #92745d;
}


.input-box i {
    position: absolute;

    right: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 20px;

    color: #8b684f;
}


/* =========================
   ERROR
========================= */

.error {
    display: block;

    min-height: 18px;

    margin-top: -14px;
    margin-bottom: 4px;

    text-align: left;

    font-size: 12px;

    color: #c45555;
}


/* =========================
   FORGOT
========================= */

.forgot-link {
    margin: 8px 0 15px;

    text-align: right;
}


.forgot-link a {
    font-size: 13px;

    color: #8b684f;

    text-decoration: none;
}


.forgot-link a:hover {
    text-decoration: underline;
}


/* =========================
   BUTTON
========================= */

.btn {
    width: 100%;

    height: 48px;

    background: #a97955;

    border: none;

    border-radius: 10px;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}


.btn:hover {
    background: #8f6245;
}


/* =========================
   PARAGRAPH
========================= */

.form-box p {
    font-size: 13px;

    margin: 15px 0;

    color: #92745d;
}


/* =========================
   SOCIAL
========================= */

.social-icons {
    display: flex;

    justify-content: center;

    gap: 10px;
}


.social-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 42px;
    height: 42px;

    background: transparent;

    border: 1px solid #d6bda7;

    border-radius: 10px;

    color: #79563f;

    font-size: 20px;

    cursor: pointer;

    transition: 0.3s;
}


.social-btn:hover {
    background: #ead5c1;

    border-color: #a97955;

    transform: translateY(-2px);
}


/* =========================
   TOGGLE BOX
========================= */

.toggle-box {
    position: absolute;

    width: 100%;
    height: 100%;
}


.toggle-box::before {
    content: '';

    position: absolute;

    left: -250%;

    width: 300%;
    height: 100%;

    background: #a97955;

    border-radius: 150px;

    z-index: 2;

    transition: 1.8s ease-in-out;
}


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


/* =========================
   TOGGLE PANEL
========================= */

.toggle-panel {
    position: absolute;

    width: 50%;
    height: 100%;

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 30px;

    z-index: 2;

    transition: 0.6s ease-in-out;
}


.toggle-panel h1 {
    color: white;

    font-size: 32px;

    margin-bottom: 10px;
}


.toggle-panel p {
    margin-bottom: 20px;

    color: white;
}


.toggle-panel .btn {
    width: 160px;

    height: 46px;

    background: transparent;

    border: 2px solid white;
}


.toggle-left {
    left: 0;

    transition-delay: 1.2s;
}


.container.active .toggle-left {
    left: -50%;

    transition-delay: 0.6s;
}


.toggle-right {
    right: -50%;

    transition-delay: 0.6s;
}


.container.active .toggle-right {
    right: 0;

    transition-delay: 1.2s;
}


/* =========================
   TABLET
========================= */

@media screen and (max-width: 750px) {

    body {
        padding: 15px;
    }


    .container {
        width: 100%;

        max-width: 500px;

        height: 700px;
    }


    .form-box {
        bottom: 0;

        width: 100%;

        height: 70%;

        padding: 30px;
    }


    .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-left {
        top: 0;
    }


    .container.active .toggle-left {
        left: 0;

        top: -30%;
    }


    .toggle-right {
        right: 0;

        bottom: -30%;
    }


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

}


/* =========================
   MOBILE
========================= */

@media screen and (max-width: 450px) {

    body {
        padding: 10px;
    }


    .container {
        height: 680px;

        border-radius: 22px;
    }


    .form-box {
        padding: 25px 20px;
    }


    h1 {
        font-size: 28px;
    }


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


    .input-box {
        margin: 15px 0;
    }


    .input-box input {
        padding: 12px 42px 12px 15px;

        font-size: 14px;
    }


    .form-box p {
        font-size: 12px;
    }


    .social-btn {
        width: 40px;
        height: 40px;
    }

}