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

:root {
    --text-dark: hsl(240, 54%, 15%);
    --text-light: hsl(242, 18%, 64%);
    --primary: hsl(222, 98%, 60%);
    --primary-lighter: hsl(240, 33%, 86%);
}

a,
button {
    all: unset;
    cursor: pointer;
}

img {
    width: 100%;
    height: 100%;
    display: block;
}

body {
    font-family: Poppins, sans-serif;
    height: 100vh;
    background-color: #00E8F6 !important;
    /* #a7f4f8  */
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    max-width: 1070px;
    width: 100%;
    height: 85vh;
    display: flex;
    margin-inline: 1rem;
}

.image-section {
    width: 50%;
    position: relative;
    order: 2;
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    object-fit: cover;
}

.logo-container{
    margin-bottom: 3rem !important;
}

@media screen and (max-width: 60rem) {
    .auth-container {
        width: 100%;
        margin: 0;
    }
}

.form-section {
    width: 50%;
    background-color: white;
    padding: 2.5rem 1rem;
    display: flex;
    align-items: center;
    order: 1;
}

.form-wrapper {
    width: 75%;
    margin: 0 auto;
}

.logo-container {
    width: 100%;
    margin-bottom: 2.2rem;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #16164d;
}

.form-group input {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem;
    border: 2px solid var(--primary-lighter);
    border-radius: 0.3rem;
}

.form-group input:focus {
    border: 2px solid #16164d;
}

.login-btn{
    width: 100%;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    color: white;
    background: #ff5689;
    text-align: center;
}

.login-btn:hover {
    opacity: 0.9;
    background: black;
}

@media screen and (max-width: 50rem) {
    .auth-container {
        max-width: 80%;
        flex-direction: column;
        margin-inline: 0;
        height: 100vh;
    }

    .image-section,
    .form-section {
        width: 100%;
    }

    .image-section {
        height: 25vh;
        order: 1;
    }

    .form-section {
        flex: 1;
        padding: 1rem 1rem;
        order: 2;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .form-wrapper>h2 {
        font-size: 1.25rem;
    }

    .form-wrapper>p {
        margin-bottom: 1rem;
    }

    .form-wrapper button {
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 36.25rem) {
    body{
        align-items: normal;  
    }
      
    .auth-container {
        max-width: 100%;
    }

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