:root {
    --font-base: "Roboto", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: var(--font-base);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* CARD UNIFICADO */
.card-login {
    display: flex;
    flex-direction: row;
    gap: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(82, 81, 81, 0.568);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.205);
    padding: 2rem;
    max-width: 1000px;
    width: 90%;
}

/* MENSAGEM DE BOAS-VINDAS */
.welcome-message {
    flex: 1;
    background-color: #ffffffcc;
    /* leve transparência branca */
    padding: 2rem;
    border-left: 6px solid #1e88e5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 1.6;
}

.welcome-message h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0d47a1;
}

.welcome-message h1 span {
    color: #1e88e5;
}

.welcome-message p {
    margin-bottom: 0.8rem;
    font-size: 20px;
}

/* FORMULÁRIO DE LOGIN */
.input-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: white;
}

.input-card h1 {
    font-size: 25px;
    text-shadow: 2px 2px 4px black;
}

.logo-img {
    width: 60%;
}

.input-card input {
    font-family: var(--font-base);
    width: 70%;
    height: 30px;
    border: 1px solid black;
    border-radius: 9px;
    padding: 10px;
    background-color: #d8d8d8;
}

.input-card button {
    padding: 13px;
    width: 70%;
    border: 1px solid black;
    border-radius: 10px;
    cursor: pointer;
}

.input-card button:hover {
    background-color: rgb(54, 66, 131);

}

.input-card a {
    width: 70%;
    text-align: center;
    text-decoration: none;
}

.input-card p {
    font-size: 15px;
}

.input-card p a {
    color: rgb(202, 199, 199);
    text-shadow: 2px 2px 4px rgb(64, 36, 141);
    text-decoration: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 9999;
    transition: opacity 1.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 540px) {
    .card-login {
        flex-direction: column;
        gap: 20px;
        padding: 1.5rem;
        width: 99%;
        max-height: 95%;
        overflow-y: auto;
    }

    .logo-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .welcome-message {
        display: none;
    }
}
