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

html{
    height: 100%;
}

body {
    font-family: "Roboto", sans-serif;
    height: 100%;
}

nav {
    background-color: #082A49;
    height: 5.1875rem;
    display: flex;
    align-items: center;
    padding-left: 1.25rem;
}

nav img {
    height: 2.3125rem;
    width: 9.3125rem;
}

footer {
    background-color: #E6E6E6;
    display: flex;
    padding: 1.25rem;
    height: 5.375rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 1rem;
}

footer p {
    color: #868E96;
    font-weight: 600;
}

footer img {
    height: 2.3125rem;
    width: 9.3125rem;
}

button {
    cursor: pointer;
}

:root {
    --color-fill: #0a2741;
    --color-primary: #00C85F;
    --color-primary-darker: #119A52;
    --color-gray-light: #e3e6ef;
    --color-gray-dark: #5a5f7d;
    --color-error: #FF4D4D;

    --radius-default: 10%;
}

.container {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100vh;

    background-color: gray;

    overflow: hidden;
}

.img-container {
    display: flex;
    padding: 1rem;
    background-color: var(--color-fill);
}

.img-container img {
    width: 80%;
    height: 80%;

    margin-right: auto;
    margin-left: auto;
    object-fit: cover;
}

.form-container {
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 1rem;

    border-radius: 0.5rem;
    background-color: white;

    transform: translateY(-3.5rem);
}

.logo-usadosbr {
    display: flex;
    margin: 1rem auto 2rem;
    width: 60%;
    max-width: 262px;
    margin-top: auto;
}

.logo-tudoemum {
    display: flex;
    margin: 1rem auto 2rem;
    width: 285px;
    margin-top: 120px;
    margin-bottom: 3rem;
}

/* form stuff */
.form-field {
    display: block;
    margin-bottom: 1rem;
}


.form-field__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #868E96;
    margin-bottom: 0.5rem;
}

.form-field--is-active .form-field__control {
    border-color: var(--color-primary);
}

.form-field__control::after {
    border-bottom: 2px solid var(--color-primary);
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    transform: scaleX(0);
    transition: all 0.4s;
    width: 1%;
}
.validation-summary-errors {
  display: flex;
  justify-content: center;
  align-items: center;
}

.validation-summary-errors ul {
  list-style: none;
  padding-left: 0;
  color: var(--color-error);
  margin: -1rem 0 1rem 0;
}
.validation-summary-errors ul li {
  padding: 0.1rem 0;
}


.form-field__input,
.form-field__textarea {
    border-radius: 0.375rem;
    padding: 0.7rem;
    font-size: 0.8125rem;
    background: #F1F1F1;
    border: none;
    width: 100%;
    color: #41484B;
}

.form-field__input:hover,
.form-field__textarea:hover {
    opacity: 80%;
}

.form-field__textarea {
    height: 150px;
}

.d-flex {
    display: flex;
}

.btn-submit {
    font-family: "Ubuntu", sans-serif;
    font-size: 1rem;
    font-weight: bold;

    color: #fff;
    background-color: var(--color-primary);

    margin-left: auto;
    margin-right: auto;

    padding: 0.75rem 3rem;
    border: 0;
    border-radius: 1.5rem;
}

.btn-submit:not(:disabled):hover {
    background-color: var(--color-primary-darker);
}

.btn-logout {
    font-family: "Ubuntu", sans-serif;
    font-size: 1.1rem;
    font-weight: bold;

    color: white;
    background-color: var(--color-error);

    margin-left: auto;
    margin-right: auto;

    padding: 0.75rem 3rem;
    border: 0;
    border-radius: 1.5rem;
}

.btn-logout:not(:disabled):hover {
    background-color: #cb0606;
}

.error-text {
    color: var(--color-error);
    font-size: 0.80rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

@media (min-width: 50rem) {
    .container {
        background-color: white;
    }

    .img-container {
        width: 50%;
        max-width: 710px;
    }

    .img-container img {
        margin: auto;

        width: 100%;
        object-fit: contain;
    }

    .form-container {
        display: flex;
        flex-direction: column;

        align-items: center;

        width: calc(100% - min(50%, 710px));
        margin: 0;
        padding: 5%;
    }

    .form-container__form {
        width: 100%;
        max-width: 35rem;
    }

    .row-reversed {
        flex-direction: row-reverse;
    }

    .left-bordered {
        border-top-left-radius: var(--radius-default);
        border-bottom-left-radius: var(--radius-default);
    }

    .row {
        flex-direction: row;
    }

    .right-bordered {
        border-top-right-radius: var(--radius-default);
        border-bottom-right-radius: var(--radius-default);
    }
}

/* checkbox */
.checkbox-container {
    color: #9299b8;

    text-align: justify;
    text-justify: inter-word;

    display: block;
    position: relative;
    padding-left: 20px;
    cursor: pointer;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    background-color: var(--color-gray-light);
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: var(--color-gray-light);
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--color-primary);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 5.5px;
    top: 3px;
    width: 4.5px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.account-options {
    font-family: "Rubik", sans-serif !important;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 1rem 0;

    color: var(--color-fill);

    text-align: right;
}

.rememberMeSection {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    justify-content: space-between;
}
  
.rememberMeSection .rememberMeLabel {
    font-weight: 400;
    color: #868e96;
}

.link {
    text-decoration: none;
    color: var(--color-fill);

    margin-bottom: 1rem;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 3rem;
}

.password-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.eye-icon {
    background-image: url(/svg/eye.svg);
    background-repeat: no-repeat;
}

.eye-off-icon {
    background-image: url(/svg/eye-off.svg);
    background-repeat: no-repeat;
}

/* Form */
.form-control {
    cursor: pointer;
    display: inline-block;
}

.form-control-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    background-color: white;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--color-gray-light);;
    border-radius: 4px;
    transform: translateY(0.075rem);
    display: grid;
    place-content: center;
    cursor: pointer;

}

.form-control-checkbox:focus,
.form-control-checkbox:hover {
    outline: none;
    border-color:  var(--color-primary);
}

.form-control-checkbox::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    transform: scale(0);
    border-radius: 4px;
    transition: transform 0.15s ease-in-out;
    box-shadow: inset 1rem 1rem var(--color-primary);
}

.form-control-checkbox:checked::before {
    transform: scale(1);
}

/* if is mobile */
@media (max-width: 41.875rem)  {
    nav {
        justify-content: center;
    }
}