/* Estilos globais e de corpo da página */
body {
    background-color: #f5f5f5;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
.mf-login-header {
    background-color: #972123;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mf-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.mf-header-logo {
    height: 30px;
}

.mf-header-link {
    color: #fff;
    /* Alterado para branco para contraste */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.mf-header-link:hover {
    text-decoration: underline;
}

/* Main Content */
.mf-login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 51px);
    /* Ajuste de altura para telas pequenas */
    padding: 20px;
}

.mf-login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    /* Garante que padding e borda sejam incluídos na largura */
}

.mf-login-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Formulário */
.mf-form-group {
    margin-bottom: 5px;
}

.mf-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.mf-input {
    width: 100%;
    padding: 12px !important;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    /* remove default appearance on some browsers */
}

.mf-input:focus {
    border-color: #972123;
    outline: none;
    box-shadow: 0 0 0 2px rgba(151, 33, 35, 0.25);
}

.mf-input-with-icon {
    position: relative;
}

.mf-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.mf-password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mf-forgot-password-link {
    font-size: 14px;
    color: #972123;
    text-decoration: none;
}

.mf-forgot-password-link:hover {
    text-decoration: underline;
}

.mf-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mf-checkbox {
    margin-right: 8px;
}

.mf-checkbox-label {
    font-size: 14px;
    color: #555;
}

.mf-login-button {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #972123;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 18px;
}

.mf-register-button {
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    color: #972123 !important;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 15px;
}

.mf-login-button:hover {
    background-color: #801d1e;
}

.mf-register-button:hover {
    filter: brightness(0.9);
    color: #fff;
}

/* Mensagens de erro e estado */
.mf-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.mf-input.mf-error {
    border-color: #dc3545;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .mf-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mf-header-link {
        color: #fff;
        /* Mantém a cor do link */
    }

    .mf-login-main {
        min-height: calc(100vh - 60px);
        background-color: #fff;
        padding: 0;
    }


    .mf-login-container {
        margin: 0 15px;
        margin: 0;
    }

    .mf-login-title {
        font-size: 24px;
    }
}