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

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body,
input {
    font-family: "Poppins", sans-serif;
}

main {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #215c84;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {
    position: relative;
    width: 100%;
    max-width: 1020px;
    height: 640px;
    background-color: #fff;
    border-radius: 3.3rem;
    box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inner-box {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* Forms Section */
.forms-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: 0.8s ease-in-out;
}

form {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.heading h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #151111;
    text-align: center;
    margin-bottom: 1rem;
}

.input-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 0.8rem 0.5rem;
    border: none;
    border-bottom: 2px solid #ccc;
    font-size: 0.95rem;
    color: #151111;
    outline: none;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-bottom-color: #27426d;
}

label {
    font-size: 0.9rem;
    color: #bbb;
    position: absolute;
    top: -0.8rem;
    left: 0;
    background: #fff;
    padding: 0 0.3rem;
}

.sign-btn {
    padding: 0.8rem;
    background-color: #151111;
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.sign-btn:hover {
    background-color: #27426d;
}

/* Carousel Section */
.carousel {
    flex: 1;
    background-color: #fff;
    border-radius: 2rem;
    border: 0.1rem solid blue;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.8s ease-in-out;
}

.carousel img {
    max-width: 80%;
    margin-bottom: 1.5rem;
}

.text-slider {
    text-align: center;
}

/*.text-group h2 {*/
/*    font-size: 1.6rem;*/
/*    font-weight: 600;*/
/*    margin-bottom: 0.5rem;*/
/*}*/

.text-group h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
}

/* Media Queries */
@media (max-width: 850px) {
    .box {
        max-width: 600px;
        height: auto;
        border-radius: 2rem;
    }

    .inner-box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .forms-wrap {
        width: 100%;
        padding: 1.5rem 0;
    }

    .carousel {
        width: 100%;
        margin-top: 1rem;
        border-radius: 1.5rem;
        padding: 1.5rem;
    }

    .carousel img {
        max-width: 40%;
    }

    .text-group h2 {
        font-size: 1.0rem;
    }

    .text-group h3 {
        font-size: 1rem;
    }
}

@media (max-width: 30px) {
    .inner-box {
        padding: 1rem;
    }

    .carousel img {
        max-width: 30%;
    }

    .text-group h2 {
        font-size: 1.0rem;
    }

    .text-group h3 {
        font-size: 0.9rem;
    }

    .sign-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .input-wrap {
        margin-bottom: 1rem;
    }

    .input-field {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }

    label {
        font-size: 0.8rem;
    }
}
