@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

:root {
    --primary-color: #044c8d;
    --primary-color-dark: #005a92;
    --secondary-color: #ffffff;
    --secondary-color-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    outline: none;
}

body {
    background-color: var(--secondary-color-light);
    overflow: auto;
    min-height: 100vh;
}

/* Header fixo institucional */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color-light);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
}

header img {
    max-width: 250px;
    height: auto;
}

/* Botão "Manual" */
.manual-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--primary-color-dark);
    background-color: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.manual-button:hover {
    background-color: #e9ecef;
}

.sidebar-footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Container geral */
.container {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Formulário */
form#login-form {
    width: 100%;
    max-width: 450px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color-dark);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    font-size: 16px;
    color: var(--primary-color-dark);
}

input[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    background-color: var(--primary-color-dark);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: var(--primary-color);
}

/* Botão "Precisa de Ajuda" */
#duvidas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--secondary-color);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 30px auto 0 auto;
    color: var(--primary-color-dark);
    cursor: pointer;
    border: 1px solid #ccc;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 450px;
}

#duvidas:hover {
    background-color: #eef2f5;
}

#duvidas img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Ícones pequenos */
.small-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Modal de carregamento */
.modal.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.modal.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #ccc;
    border-top-color: var(--primary-color-dark);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    z-index: 1002;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 576px) {
    .container {
        padding: 30px 15px;
    }

    form#login-form {
        padding: 20px;
    }

    .title {
        font-size: 24px;
    }

    header img {
        max-width: 180px;
    }
}
