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

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: clamp(18px, 5vh, 56px);
    background-image: url('../image/fundoLogin.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.logoLogin {
    width: clamp(170px, 34vw, 300px);
    max-height: clamp(130px, 30vh, 260px);
    height: auto;
    margin-bottom: clamp(12px, 3vh, 20px);
    transition: all 0.5s ease;
    object-fit: contain;
}

.loginDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: auto;
    padding-inline: 18px;
}

.botaoLogin {
    font-size: 24px;
    padding: 12px;
    font-weight: bold;
    width: 100px;
    border-radius: 10px;
    color: #3D2D65;
    background-color: #e8e4f3;
    cursor: pointer;
    transition: all 0.5s ease;
}

.botaoIdentidade {
    width: min(280px, 82vw);
    margin-top: 16px;
    padding: 12px 16px;
    border: 2px solid #3d2d65;
    border-radius: 10px;
    background-color: #ffffff;
    color: #3d2d65;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.botaoIdentidade:hover,
.botaoIdentidade:focus-visible {
    background-color: #3d2d65;
    color: #ffffff;
}
.botaoLogin2 {
    font-size: 24px;
    padding: 12px;
    font-weight: bold;
    width: 100px;
    border-radius: 10px;
    color: #3D2D65;
    background-color: #e8e4f3;
    cursor: pointer;
    margin-top: clamp(14px, 3vh, 30px);
    transition: all 0.5s ease;
    align-self: center;
    justify-self: center;
}

.formLogin {
    display: none;
    margin-top: clamp(10px, 2.5vh, 20px);
    text-align: left;
}

.erroLogin {
    min-height: 18px;
    margin-top: 16px;
    color: #8b1e3f;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.erroVisivel {
    opacity: 1;
}

.move-up-and-shrink {
    transform: translateY(clamp(-64px, -10vh, -28px));
}

.move-down {
    transform: translateY(20px);
    transition: all 1s ease;
    display: none;
    animation: fadeOut 0.5s ease-in-out;
}

.show-form {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

input[type="text"], input[type="password"] {
    width: min(250px, 82vw);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="submit"]:hover {
    background-color: #8677ac;
}
.botaoLogin:hover {
    background-color: #74649c;
}

input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.8;
}

.rodapeSistema {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 12px 18px;
    border-top: dotted 1px rgba(53, 19, 68, 0.453);
    background-color: #fff;
    color: #9b9b9b;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-height: 680px) {
    body {
        padding-top: 12px;
    }

    .logoLogin {
        width: clamp(140px, 28vw, 220px);
        max-height: 24vh;
        margin-bottom: 10px;
    }

    .move-up-and-shrink {
        transform: translateY(-24px);
    }

    .botaoLogin {
        font-size: 20px;
        padding: 10px;
    }

    input[type="text"], input[type="password"] {
        margin: 6px 0;
        padding: 8px;
    }

    .rodapeSistema {
        padding: 8px 12px;
        font-size: 11px;
        line-height: 1.35;
    }
}

@media (max-height: 520px) {
    .move-up-and-shrink {
        transform: none;
    }

    .logoLogin {
        width: clamp(120px, 24vw, 170px);
        max-height: 20vh;
    }
}

.rodapeSistema p {
    margin: 2px 0;
    overflow-wrap: anywhere;
}

.rodapeSistema .rodapeAutores {
    color: #8f8f8f;
}

.rodapeSistema .rodapeDireitos {
    color: #adadad;
    font-size: 11px;
}
