@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #9053c7;
    background: -webkit-linear-gradient(-135deg, #c850c0, #4158d0);
    background: -o-linear-gradient(-135deg, #c850c0, #4158d0);
    background: -moz-linear-gradient(-135deg, #c850c0, #4158d0);
    background: linear-gradient(-135deg, #c850c0, #4158d0);
    width: 100%;
    /* 2 */
    min-height: 100vh;
    padding: 1.5rem;
}

.box-container {
    /* width: 100%; */
    /* 1 */
    /* min-width: 24rem;
    max-width: 30rem; */
    /* 3 */
    width: clamp(24rem, 100%, 30rem);
    border-radius: 1rem;
    background-color: #fff;
    padding: 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    width: 100%;
}

.img-container {
    padding: 1rem;
}

img {
    display: block;
    width: 100%;
    height: 100%;
}

.form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section form > *:not(:last-child) {
    margin-bottom: 2rem;
}

span {
    display: block;
    text-align: center;
}

#charging {
    font-size: 0.8rem;
}

.form-title, .alert-success {
    font-size: 2rem;
}

.form-text {
    font-size: 1.6rem;
}

input {
    outline: none;
    border: none;
    display: block;
    width: 20rem;
    height: 4rem;
    font-size: 1.5rem;
    background-color: #eee;
    border-radius: 2.5rem;
    line-height: 1.5;
    padding: 0 4rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
    text-align: center;
}

input[type=submit] {
    color: #fff;
    text-transform: uppercase;
    background: #57b846;
    font-weight: 700;
    margin-bottom: 10rem;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: #57b846;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert {
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    text-align: center;
}

@media screen and (min-width: 400px) {

    html {
        font-size: 12px;
    }

}

@media screen and (min-width: 500px) {

    html {
        font-size: 14px;
    }
}

@media screen and (min-width: 700px) {

    html {
        font-size: 16px;
    }
}

@media only screen and (min-width: 800px) {

    html {
        font-size: 14px;
    }

    body {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .box-container {
        flex-direction: row;
        width: 100%;
        max-width: 60rem;
    }

    .form-section {
        padding: 1rem;
    }

    img {
        max-width: 35rem;
    }
}

@media only screen and (max-width: 800px) {
    .box-container > *:not(:last-child) {
        margin-bottom: 2rem;
    }
}