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

:root {

    --Red: hsl(4, 100%, 67%);
    --Red-light: hsl(4, 100%,  90%);


    --Blue-800: hsl(234, 29%, 20%);
    --Blue-700: hsl(235, 18%, 26%);
    --Grey: hsl(0, 0%,58%);
    --White: hsl(0, 0%, 100%);
    --Black: hsl(0, 0%, 0%);
    --Orange-500: oklch(70.5% 0.213 47.604);
    --Rose-500: oklch(64.5% 0.246 16.439);

    --drop-shadow: 0 1rem 1.5rem .5rem rgb(0,0,0,0.1)
}

html, body {
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}


main {
    background-color: var(--Blue-700);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign-up-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-block-end: 2.5rem;
    background-color: var(--White);
    max-width: 46rem;
    box-shadow: var(--drop-shadow);

}
picture { 
    width: 100%;
}

img { 
    width: 100%;
    object-fit: cover;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-content {
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h1 {
    color: var(--Blue-800);
    font-size: 2.5rem;
}

p, li {
    color: var(--Blue-700);
    line-height: 1.5;
}

li {
    list-style: none;
    padding-inline-start: 2.5em;
    position: relative;
    margin-block-end: .5rem;
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('./assets/images/icon-success.svg');
    background-size: 1.3rem 1.3rem; 
    background-repeat: no-repeat;
    width: 1.3rem;
    height: 1.3rem;

}

form {
    padding-inline: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.label-row {
    font-weight: 700;
    font-size: .75rem;
    display: flex;
    justify-content: space-between;
    gap: .75rem
}



input {
    padding: 1.25em ;
    border: 1px solid var(--Grey);
    border-radius: .5rem;
    color: var(--Grey);
    font-size: 1rem;
    margin-block-end: .5rem;

}

input:active, input:focus {
    color: var(--Black);
}

input:active {
    border: 1px solid var(--Black);
}

button {
    font-size: 1rem;
    background-color: var(--Blue-800);
    color: var(--White);
    padding: 1.25em;
    border-radius: .5rem;
    font-weight: 700;
    border: none;
}

button:hover {
    background: linear-gradient(.25turn, var(--Rose-500), var(--Orange-500) );
    cursor: pointer;
    box-shadow: var(--drop-shadow);
}

.error-msg {
    color: var(--Red)
}

.error input {
    border: solid 1px var(--Red);
    outline: solid 1px var(--Red);
    background-color: var(--Red-light);
    color: var(--Red)
}

.error input::placeholder {
    color: var(--Red)
}

dialog {
    background-color: var(--White);
    border: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    min-width: auto;
    min-height: auto;
    width: auto;
    height: auto;


}

.dialog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    padding-block-start: 5rem;
    height: 100%;


}

dialog h2{
    color: var(--Blue-800);
    font-size: 2.5rem;
}

dialog span {
    font-weight: 700;
}

dialog img {
    width: 4rem;
}

dialog button {
    margin-block-start: auto;
}


@media (min-width: 28.125rem){
     .sign-up-container {
        margin-block: 3rem;
        border-radius: 1.5rem;
     }

    picture {
        padding: 1rem;
        width: 100%
    } 

    img { 
        width: 100%;
        object-fit: cover;
    }
}

@media (min-width: 46rem){
 

    .sign-up-container {
        flex-direction: row-reverse;
        border-radius: 1.5rem;
        gap: 0 ;
        padding-block-end: 0;
    }

    p, li, input, .submit-btn {
        font-size: .75rem
    }

    .column {
        width: 50%;
        padding-block: 4rem ;
        padding-inline-start: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;

    }

    .card-content, form {
        gap: .5rem
    }

    input {
        margin-block-end: .5rem;
    }

    picture {
        width: 50%;
        padding: 1.25rem
    }

    img {
        object-fit: contain;
        width: 100%;
        margin: 0
    }
    

    li::before {
        background-size: 1rem 1rem;
        width: 1rem;
        height: 1rem;
    }

    dialog {
        background-color: var(--Blue-700);
        
    }

    .dialog-content {
        height: auto;
        background-color: var(--White);
        max-width: 25rem;
       position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 2rem;
        padding: 3rem;
        gap: 1rem;
        box-shadow: var(--drop-shadow);
    }

    .dialog-content button {
        font-size: .75rem;
        margin-block-start: 1rem;
    }

    .dialog-content img {
        width: 3rem;
        margin-block-end: 1rem;
    }

}