html {
    height: 100%;
}

body {
    height: 100%;
    background-color: var(--color-white);
}

/* --------------- Página principal --------------- */
.principal {
    height: 95%;
    display: flex;
    justify-content: space-between;
}

/* --------------- Tela de Login --------------- */
.principal__login {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.principal__login__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 77.70%;
    padding-top: 10%;
    margin-bottom: 5%;
}

.logo_login {
    width: 30%;
    margin-bottom: 1.25rem;
}

.principal__login__container__card {
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0.125rem 0.125rem 1.25rem #1b1b1b8c;
    border-radius: 1.875rem;
}

.card__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0rem;
}

#loginForm {
    width: 90%;
}

.title_card {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-grey-medio);
    margin-bottom: 0.75rem;
}

.principal__login__container__cadastro,
.principal__login__container__cadastro a,
.card__form a {
    text-decoration: none;
    font-size: 0.75rem;
}

.principal__login__container__cadastro {
    margin-top: 2.8% !important;
}

.text-card {
    text-align: center;
}

.custom-form-floating {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    border: 0.0625rem solid var(--color-grey-light);
    border-radius: 0.5rem;
    background-color: var(--color-white);
}

.custom-form-floating input {
    width: calc(100% - 0.7rem);
    height: 2.8125rem;
    padding: 0.4rem 0.75rem;
    font-weight: 300;
    font-size: 1rem;
    margin-left: 0.35rem;
    border-radius: 0.5rem;
    outline: none;
    display: block;
    position: relative;
    border: none;
    background: transparent;
}

.custom-form-floating input::placeholder {
    color: #aaa;
    font-size: 0.95rem;
}

.custom-form-floating label {
    position: absolute;
    top: -0.55rem;
    left: 0.75rem;
    padding: 0 0.35rem;
    border-radius: 0.95rem !important;
    color: var(--color-black);
    font-size: 0.75rem;
    background: linear-gradient(180deg, var(--color-white) 55%, #00000000 50%) !important;
    pointer-events: none;
    transition: none;
    transform: none;
}

/* remove a animação antiga */
.custom-form-floating input:focus + label,
.custom-form-floating input:not(:placeholder-shown) + label,
.input-error input:focus + label,
.input-error input:not(:placeholder-shown) + label {
    top: -0.55rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-black);
    background: linear-gradient(180deg, var(--color-white) 55%, #00000000 50%) !important;
}

.div-error {
    border-color: var(--color-red-light) !important;
    background-color: var(--color-red-clear);
}

.custom-form-floating input:-webkit-autofill,
.custom-form-floating input:-webkit-autofill:hover,
.custom-form-floating input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #00000000 inset;
    box-shadow: 0 0 0 1000px #00000000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.custom-form-floating input,
.input-error {
    transition: background-color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.input-error input::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-red-clear);
    transition: transform 0.5s ease-in-out;
    transform: scaleX(0);
}

.input-error input:hover::before {
    transform: scaleX(1);
}

.input-error input,
.input-error label {
    background-color: transparent;
    border-color: var(--color-red-light) !important;
}

.form-pass {
    position: relative;
}

.icon {
    border: none;
    background: none;
    position: absolute;
    top: 50%;
    right: 1.5625rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.icon img {
    display: block;
    height: 1rem;
}

/* --------------- Mudar de Login para Reset --------------- */

#pagLogin {
    width: 100%;
}

#loginCard {
    display: block;
}

#resetPasswordCard {
    display: none;
    width: 100%;
    transform: rotateY(180deg);
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(180deg);
    }
}

@keyframes rotate-inverse {
    0% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.rotating-Login {
    animation: rotate 0.9s ease-in-out forwards;
}

.rotating-Reset {
    animation: rotate-inverse 0.9s ease-in-out forwards;
}

/* --------------- Tela de Reset --------------- */
#resetPasswordForm {
    width: 90%;
}

.title__reset {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-grey-strong);
    text-align: center;
    margin-bottom: 0.9375rem !important;
}

.text-reset {
    font-weight: 500;
    width: 100%;
    text-align: center;
    margin-bottom: 0.9375rem !important;
    color: var(--color-grey-strong);
}

.principal__login__container__card__reset {
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0.125rem 0.125rem 1.25rem #1b1b1b8c;
    border-radius: 1.875rem;
}

/* --------------- Tela da Imagem --------------- */
.principal__img {
    display: flex;
    justify-content: end;
    width: 50%;
}

#backgroundImage {
    width: 85%;
    margin-bottom: 5%;
}

/* --------------- Footer --------------- */
.footer {
    position: relative;
    background-color: var(--color-white-light);
    width: 100%;
    height: 5%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    bottom: 0;
    padding: 0.625rem 0rem;
}

.footer__parag {
    font-size: 0.6875rem;
    color: var(--color-grey-strong);
}

.login-feedback {
    width: 100%;
    min-height: 1rem;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #b42318;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    box-sizing: border-box;
    text-align: center;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
}

.login-feedback.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideDown 0.25s ease;
}

.custom-form-floating.div-error {
    border: 0.0625rem solid var(--color-red-light) !important;
    background-color: var(--color-red-clear) !important;
    box-shadow: 0 0 0 0.125rem rgba(255, 0, 0, 0.05);
}

.custom-form-floating.div-error label {
    color: #b42318 !important;
    font-weight: 600;
}

.custom-form-floating.div-error input {
    color: #7a0916;
}

.custom-form-floating.div-error input::placeholder {
    color: #c05a66;
}

.shake-error {
    animation: shakeX 0.28s ease-in-out;
}

@keyframes shakeX {
    0% { transform: translateX(0); }
    20% { transform: translateX(-0.25rem); }
    40% { transform: translateX(0.25rem); }
    60% { transform: translateX(-0.2rem); }
    80% { transform: translateX(0.2rem); }
    100% { transform: translateX(0); }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}